Fixed infinite fire / Command center logic control
This commit is contained in:
@@ -1399,7 +1399,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
||||
return switch(sensor){
|
||||
case type -> block;
|
||||
case firstItem -> items == null ? null : items.first();
|
||||
case config -> block.configurations.containsKey(Item.class) || block.configurations.containsKey(Liquid.class) ? config() : null;
|
||||
case config -> block.configSenseable() ? config() : null;
|
||||
case payloadType -> getPayload() instanceof UnitPayload p1 ? p1.unit.type : getPayload() instanceof BuildPayload p2 ? p2.block() : null;
|
||||
default -> noSensed;
|
||||
};
|
||||
|
||||
@@ -56,7 +56,7 @@ abstract class FireComp implements Timedc, Posc, Syncc, Drawc{
|
||||
return;
|
||||
}
|
||||
|
||||
if(time >= lifetime || tile == null){
|
||||
if(time >= lifetime || tile == null || Float.isNaN(lifetime)){
|
||||
remove();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user