mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-13 22:59:02 +00:00
Added Factory object #31
This commit is contained in:
@@ -119,7 +119,7 @@ public class TileMap implements JSONSerialisable {
|
||||
deflaterOutputStream.close();
|
||||
byte[] compressedBytes = stream.toByteArray();
|
||||
|
||||
json.put("zipTerrain", new String(Base64.getEncoder().encode(compressedBytes)));
|
||||
json.put("z", new String(Base64.getEncoder().encode(compressedBytes)));
|
||||
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
@@ -133,7 +133,7 @@ public class TileMap implements JSONSerialisable {
|
||||
TileMap tileMap = new TileMap(World.WORLD_SIZE, World.WORLD_SIZE);
|
||||
|
||||
|
||||
byte[] compressedBytes = Base64.getDecoder().decode((String) object.get("zipTerrain"));
|
||||
byte[] compressedBytes = Base64.getDecoder().decode((String) object.get("z"));
|
||||
|
||||
try {
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
|
||||
Reference in New Issue
Block a user