Save file refactor / Changed sector size

This commit is contained in:
Anuken
2018-10-19 22:46:53 -04:00
parent bed22f51b4
commit 59bc73656f
9 changed files with 207 additions and 199 deletions
@@ -153,8 +153,6 @@ public class NetworkIO{
Player player = players[0];
//TODO !! use map name as the network map in Maps, so getMap() isn't null.
try(DataInputStream stream = new DataInputStream(is)){
float timerTime = stream.readFloat();
long timestamp = stream.readLong();
@@ -194,7 +192,6 @@ public class NetworkIO{
int width = stream.readShort();
int height = stream.readShort();
//TODO send advanced map meta such as author, etc
Map currentMap = new Map(map, new MapMeta(0, new ObjectMap<>(), width, height, null), true, () -> null);
currentMap.meta.tags.clear();
currentMap.meta.tags.putAll(tags);