Second map updates

This commit is contained in:
Anuken
2022-02-28 14:33:19 -05:00
parent 1a7ef3108d
commit ab4190a6b5
8 changed files with 12 additions and 11 deletions

View File

@@ -491,7 +491,9 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
/** @return whether this block is allowed to update based on team/environment */
public boolean allowUpdate(){
return team != Team.derelict && block.supportsEnv(state.rules.env);
return team != Team.derelict && block.supportsEnv(state.rules.env) &&
//check if outside map limit
(!state.rules.limitMapArea || !state.rules.disableOutsideArea || Rect.contains(state.rules.limitX, state.rules.limitY, state.rules.limitWidth, state.rules.limitHeight, tile.x, tile.y));
}
public BlockStatus status(){