Removed copper drills in loadouts

This commit is contained in:
Anuken
2022-02-01 20:29:45 -05:00
parent e865f4bc06
commit 69f59ff803
4 changed files with 10 additions and 10 deletions
+6 -4
View File
@@ -396,10 +396,12 @@ public class BlockIndexer{
var arr = ores[item.id][qx][qy];
if(arr != null && arr.size > 0){
Tile tile = world.tile(arr.first());
float dst = Mathf.dst2(xp, yp, tile.worldx(), tile.worldy());
if(closest == null || dst < minDst){
closest = tile;
minDst = dst;
if(tile.block() == Blocks.air){
float dst = Mathf.dst2(xp, yp, tile.worldx(), tile.worldy());
if(closest == null || dst < minDst){
closest = tile;
minDst = dst;
}
}
}
}