Server sector commands / World data compression / Snapshot sent w/ world

This commit is contained in:
Anuken
2018-08-15 17:25:19 -04:00
parent 8dbd0a6130
commit d4d9d59fe4
5 changed files with 169 additions and 128 deletions

View File

@@ -129,6 +129,9 @@ public class NetworkIO{
}
}
//now write a snapshot.
netServer.writeSnapshot(player, stream);
}catch(IOException e){
throw new RuntimeException(e);
}
@@ -270,6 +273,9 @@ public class NetworkIO{
world.endMapLoad();
//read raw snapshot
netClient.readSnapshot(stream);
}catch(IOException e){
throw new RuntimeException(e);
}