Modularized Kryonet handler

This commit is contained in:
Anuken
2018-01-01 13:32:18 -05:00
parent 4bf78587db
commit c7dbdd1773
8 changed files with 269 additions and 450 deletions

View File

@@ -75,7 +75,7 @@ public class NetClient extends Module {
Net.handle(EntityDataPacket.class, data -> {
Gdx.app.postRunnable(() -> {
Timers.run(10f, () -> { //TODO hack
Timers.run(10f, () -> { //TODO hack. should only run once world data is recieved
Vars.control.playerGroup.remap(Vars.player, data.playerid);
for (Player player : data.players) {