This commit is contained in:
Anuken
2025-07-12 12:42:05 -04:00
parent 0539d00cda
commit aeee327e6c

View File

@@ -203,9 +203,10 @@ public class BlockIndexer{
} }
} }
public void addIndex(Tile tile){ public void addIndex(Tile base){
process(tile); process(base);
base.getLinkedTiles(tile -> {
Item drop = tile.drop(), wallDrop = tile.wallDrop(); Item drop = tile.drop(), wallDrop = tile.wallDrop();
if(drop == null && wallDrop == null) return; if(drop == null && wallDrop == null) return;
int qx = tile.x / quadrantSize, qy = tile.y / quadrantSize; int qx = tile.x / quadrantSize, qy = tile.y / quadrantSize;
@@ -239,7 +240,7 @@ public class BlockIndexer{
if(old == 1) updatePresentOres(); if(old == 1) updatePresentOres();
} }
} }
});
} }
/** @return whether a certain block is anywhere on this map. */ /** @return whether a certain block is anywhere on this map. */