Map conversion fix

This commit is contained in:
Anuken 2019-05-14 16:38:49 -04:00
parent 094ebb8020
commit 2888e87bb8

View File

@ -144,6 +144,7 @@ public class LegacyMapIO{
int x = i % width, y = i / width;
int id = stream.readUnsignedByte();
Block block = idmap.get(id);
if(block == null) block = Blocks.air;
Tile tile = tiles.get(x, y);
//the spawn block is saved in the block tile layer in older maps, shift it to the overlay