Fixed bugs with team assignment

This commit is contained in:
Anuken
2018-10-14 09:41:19 -04:00
parent 4eb2c1f646
commit 9b42be560d
7 changed files with 758 additions and 743 deletions

View File

@@ -183,6 +183,7 @@ public class NetworkIO{
Entities.clear();
int id = stream.readInt();
player.resetNoAdd();
player.read(stream, TimeUtils.millis());
player.resetID(id);
player.add();
@@ -258,7 +259,6 @@ public class NetworkIO{
i += consecutives;
}
player.reset();
state.teams = new Teams();
byte teams = stream.readByte();