Map conversion fix
This commit is contained in:
@@ -144,6 +144,7 @@ public class LegacyMapIO{
|
|||||||
int x = i % width, y = i / width;
|
int x = i % width, y = i / width;
|
||||||
int id = stream.readUnsignedByte();
|
int id = stream.readUnsignedByte();
|
||||||
Block block = idmap.get(id);
|
Block block = idmap.get(id);
|
||||||
|
if(block == null) block = Blocks.air;
|
||||||
|
|
||||||
Tile tile = tiles.get(x, y);
|
Tile tile = tiles.get(x, y);
|
||||||
//the spawn block is saved in the block tile layer in older maps, shift it to the overlay
|
//the spawn block is saved in the block tile layer in older maps, shift it to the overlay
|
||||||
|
|||||||
Reference in New Issue
Block a user