mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-05 08:27:37 +07:00
Fixed #5025
This commit is contained in:
parent
5a493ebf0e
commit
e455f7d170
@ -97,10 +97,11 @@ public class ItemLiquidGenerator extends PowerGenerator{
|
||||
//Note: Do not use this delta when calculating the amount of power or the power efficiency, but use it for resource consumption if necessary.
|
||||
//Power amount is delta'd by PowerGraph class already.
|
||||
float calculationDelta = delta();
|
||||
boolean cons = consValid();
|
||||
|
||||
heat = Mathf.lerpDelta(heat, generateTime >= 0.001f && enabled ? 1f : 0f, 0.05f);
|
||||
heat = Mathf.lerpDelta(heat, generateTime >= 0.001f && enabled && cons ? 1f : 0f, 0.05f);
|
||||
|
||||
if(!consValid()){
|
||||
if(!cons){
|
||||
productionEfficiency = 0.0f;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user