Server sector commands / World data compression / Snapshot sent w/ world
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user