diff --git a/core/src/io/anuke/mindustry/io/LegacyMapIO.java b/core/src/io/anuke/mindustry/io/LegacyMapIO.java index ec86df1773..4dac77cabe 100644 --- a/core/src/io/anuke/mindustry/io/LegacyMapIO.java +++ b/core/src/io/anuke/mindustry/io/LegacyMapIO.java @@ -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