diff --git a/core/src/mindustry/ai/BlockIndexer.java b/core/src/mindustry/ai/BlockIndexer.java index bb35852758..78ba4ccfb1 100644 --- a/core/src/mindustry/ai/BlockIndexer.java +++ b/core/src/mindustry/ai/BlockIndexer.java @@ -393,7 +393,8 @@ public class BlockIndexer{ blocksPresent[tile.floorID()] = 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{