This commit is contained in:
Anuken
2022-06-15 08:10:06 -04:00
parent bdb199c5e7
commit 43cac0bd1e
+3
View File
@@ -476,6 +476,7 @@ public class BlockIndexer{
notifyBuildDamaged(tile.build); notifyBuildDamaged(tile.build);
} }
if(blocksPresent != null){
if(!tile.block().isStatic()){ if(!tile.block().isStatic()){
blocksPresent[tile.floorID()] = true; blocksPresent[tile.floorID()] = true;
blocksPresent[tile.overlayID()] = true; blocksPresent[tile.overlayID()] = true;
@@ -484,6 +485,8 @@ public class BlockIndexer{
if(tile.blockID() < blocksPresent.length) blocksPresent[tile.blockID()] = true; if(tile.blockID() < blocksPresent.length) blocksPresent[tile.blockID()] = true;
} }
}
static class TurretQuadtree extends QuadTree<Building>{ static class TurretQuadtree extends QuadTree<Building>{
public TurretQuadtree(Rect bounds){ public TurretQuadtree(Rect bounds){