Testing Github/Discord integration

This commit is contained in:
Anuken
2018-01-20 16:24:36 -05:00
parent 7bcea08d83
commit 52f9cd5d22
6 changed files with 8 additions and 10 deletions

View File

@@ -87,6 +87,8 @@ public class NetClient extends Module {
Vars.ui.showError("$text.disconnect");
connecting = false;
Mindustry.platforms.updateRPC();
});
Net.handle(WorldData.class, data -> {

View File

@@ -68,7 +68,6 @@ public class NetServer extends Module{
Net.sendStream(id, data);
Mindustry.platforms.updateRPC();
});
Net.handleServer(ConnectConfirmPacket.class, (id, packet) -> {
@@ -95,6 +94,8 @@ public class NetServer extends Module{
dc.playerid = player.id;
Net.send(dc, SendMode.tcp);
Mindustry.platforms.updateRPC();
});
Net.handleServer(PositionPacket.class, (id, packet) -> {

View File

@@ -432,9 +432,6 @@ public class Renderer extends RendererModule{
Draw.thickness(3f);
Draw.color(Color.SLATE);
Draw.line(x - len + 1, y, x + len + 1.5f, y);
Draw.thickness(1f);
Draw.color(Color.BLACK);
Draw.line(x - len + 1, y, x + len + 0.5f, y);
Draw.color(color);
if(w >= 1)