Fixed #4658
This commit is contained in:
@@ -481,7 +481,7 @@ public class NetClient implements ApplicationListener{
|
||||
netClient.byteStream.setBytes(net.decompressSnapshot(coreData, coreDataLen));
|
||||
DataInputStream input = netClient.dataStream;
|
||||
|
||||
byte cores = input.readByte();
|
||||
int cores = input.readInt();
|
||||
for(int i = 0; i < cores; i++){
|
||||
int pos = input.readInt();
|
||||
Tile tile = world.tile(pos);
|
||||
|
||||
@@ -852,7 +852,7 @@ public class NetServer implements ApplicationListener{
|
||||
syncStream.reset();
|
||||
int sum = state.teams.present.sum(t -> t.cores.size);
|
||||
|
||||
dataStream.writeByte(sum);
|
||||
dataStream.writeInt(sum);
|
||||
|
||||
for(TeamData data : state.teams.present){
|
||||
for(CoreBuild entity : data.cores){
|
||||
|
||||
Reference in New Issue
Block a user