Sync/save @tick/@time; make @time be based off of @tick

Closes Anuken/Mindustry-Suggestions/issues/2976
This commit is contained in:
Anuken
2021-09-22 19:35:15 -04:00
parent 6d41b894ab
commit 3f6d5b9dfe
5 changed files with 13 additions and 3 deletions

View File

@@ -40,6 +40,7 @@ public class NetworkIO{
stream.writeInt(state.wave);
stream.writeFloat(state.wavetime);
stream.writeDouble(state.tick);
stream.writeInt(player.id);
player.write(Writes.get(stream));
@@ -61,6 +62,7 @@ public class NetworkIO{
state.wave = stream.readInt();
state.wavetime = stream.readFloat();
state.tick = stream.readDouble();
Groups.clear();
int id = stream.readInt();