Fixed #7022
This commit is contained in:
@@ -476,12 +476,15 @@ public class BlockIndexer{
|
|||||||
notifyBuildDamaged(tile.build);
|
notifyBuildDamaged(tile.build);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!tile.block().isStatic()){
|
if(blocksPresent != null){
|
||||||
blocksPresent[tile.floorID()] = true;
|
if(!tile.block().isStatic()){
|
||||||
blocksPresent[tile.overlayID()] = true;
|
blocksPresent[tile.floorID()] = true;
|
||||||
|
blocksPresent[tile.overlayID()] = true;
|
||||||
|
}
|
||||||
|
//bounds checks only needed in very specific scenarios
|
||||||
|
if(tile.blockID() < blocksPresent.length) blocksPresent[tile.blockID()] = true;
|
||||||
}
|
}
|
||||||
//bounds checks only needed in very specific scenarios
|
|
||||||
if(tile.blockID() < blocksPresent.length) blocksPresent[tile.blockID()] = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static class TurretQuadtree extends QuadTree<Building>{
|
static class TurretQuadtree extends QuadTree<Building>{
|
||||||
|
|||||||
Reference in New Issue
Block a user