Erekir rule option
This commit is contained in:
@@ -502,7 +502,7 @@ 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.environment);
|
||||
return team != Team.derelict && block.supportsEnv(state.rules.env);
|
||||
}
|
||||
|
||||
public BlockStatus status(){
|
||||
|
||||
@@ -382,7 +382,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
wasHealed = false;
|
||||
|
||||
//check if environment is unsupported
|
||||
if(!type.supportsEnv(state.rules.environment) && !dead){
|
||||
if(!type.supportsEnv(state.rules.env) && !dead){
|
||||
Call.unitEnvDeath(self());
|
||||
team.data().updateCount(type, -1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user