This commit is contained in:
Anuken
2020-09-25 18:49:31 -04:00
parent 059b72b3e2
commit dc30993898
5 changed files with 13 additions and 8 deletions
+4 -1
View File
@@ -105,7 +105,10 @@ public class Build{
int wx = dx + offsetx + x, wy = dy + offsety + y;
Tile check = world.tile(wx, wy);
if(check == null || !check.interactable(team) || (!check.block.alwaysReplace && check.block != tile.block && !(check.block.size == 1 && type.canReplace(check.block)))) return false;
if(check == null ||
(check.floor().isDeep() && !type.floating && !type.requiresWater && !type.placeableLiquid) ||
!check.interactable(team) ||
(!check.block.alwaysReplace && check.block != tile.block && !(check.block.size == 1 && type.canReplace(check.block)))) return false;
}
}
}