This commit is contained in:
Anuken
2021-06-09 14:03:29 -04:00
parent b04c04f69f
commit c9ff84d03b
+2 -1
View File
@@ -393,7 +393,8 @@ public class BlockIndexer{
blocksPresent[tile.floorID()] = true; blocksPresent[tile.floorID()] = true;
blocksPresent[tile.overlayID()] = true; blocksPresent[tile.overlayID()] = true;
} }
blocksPresent[tile.blockID()] = true; //bounds checks only needed in very specific scenarios
if(tile.blockID() < blocksPresent.length) blocksPresent[tile.blockID()] = true;
} }
public static class TileArray implements Iterable<Tile>{ public static class TileArray implements Iterable<Tile>{