Erekir rule option
This commit is contained in:
@@ -809,7 +809,7 @@ public class Block extends UnlockableContent implements Senseable{
|
||||
}
|
||||
|
||||
public boolean isPlaceable(){
|
||||
return isVisible() && (!state.rules.bannedBlocks.contains(this) || state.rules.editor) && supportsEnv(state.rules.environment);
|
||||
return isVisible() && (!state.rules.bannedBlocks.contains(this) || state.rules.editor) && supportsEnv(state.rules.env);
|
||||
}
|
||||
|
||||
/** @return whether this block supports a specific environment. */
|
||||
|
||||
@@ -48,7 +48,7 @@ public class PayloadRouter extends PayloadConveyor{
|
||||
}
|
||||
|
||||
public boolean canSort(UnitType t){
|
||||
return !t.isHidden() && !t.isBanned() && t.supportsEnv(state.rules.environment);
|
||||
return !t.isHidden() && !t.isBanned() && t.supportsEnv(state.rules.env);
|
||||
}
|
||||
|
||||
public class PayloadRouterBuild extends PayloadConveyorBuild{
|
||||
|
||||
@@ -77,7 +77,7 @@ public class PayloadSource extends PayloadBlock{
|
||||
}
|
||||
|
||||
public boolean canProduce(UnitType t){
|
||||
return !t.isHidden() && !t.isBanned() && t.supportsEnv(state.rules.environment);
|
||||
return !t.isHidden() && !t.isBanned() && t.supportsEnv(state.rules.env);
|
||||
}
|
||||
|
||||
public class PayloadSourceBuild extends PayloadBlockBuild<Payload>{
|
||||
|
||||
@@ -276,7 +276,7 @@ public class CoreBlock extends StorageBlock{
|
||||
|
||||
public void requestSpawn(Player player){
|
||||
//do not try to respawn in unsupported environments at all
|
||||
if(!unitType.supportsEnv(state.rules.environment)) return;
|
||||
if(!unitType.supportsEnv(state.rules.env)) return;
|
||||
|
||||
Call.playerSpawn(tile, player);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user