Added hidden rule for environment deconstruction / Increased impact reactor liquid capacity

This commit is contained in:
Anuken
2024-01-20 20:45:15 -05:00
parent 367a20c891
commit 7d8aea77d8
3 changed files with 5 additions and 2 deletions

View File

@@ -281,9 +281,9 @@ public class Build{
return false;
}
/** Returns whether the tile at this position is breakable by this team */
/** @return whether the tile at this position is breakable by this team */
public static boolean validBreak(Team team, int x, int y){
Tile tile = world.tile(x, y);
return tile != null && tile.block().canBreak(tile) && tile.breakable() && tile.interactable(team);
return tile != null && tile.block() != Blocks.air && (tile.block().canBreak(tile) && (tile.breakable() || state.rules.allowEnvironmentDeconstruct)) && tile.interactable(team);
}
}