Fixed #8533
This commit is contained in:
@@ -1758,8 +1758,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO why check for old state?
|
boolean update = shouldConsume() && productionValid();
|
||||||
boolean prevValid = efficiency > 0, update = shouldConsume() && productionValid();
|
|
||||||
|
|
||||||
float minEfficiency = 1f;
|
float minEfficiency = 1f;
|
||||||
|
|
||||||
@@ -1791,7 +1790,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
|||||||
updateEfficiencyMultiplier();
|
updateEfficiencyMultiplier();
|
||||||
|
|
||||||
//second pass: update every consumer based on efficiency
|
//second pass: update every consumer based on efficiency
|
||||||
if(update && prevValid && efficiency > 0){
|
if(update && efficiency > 0){
|
||||||
for(var cons : block.updateConsumers){
|
for(var cons : block.updateConsumers){
|
||||||
cons.update(self());
|
cons.update(self());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user