Fixed #4043
This commit is contained in:
@@ -92,11 +92,6 @@ public class ItemLiquidGenerator extends PowerGenerator{
|
||||
return generateTime > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ambientVolume(){
|
||||
return Mathf.clamp(productionEfficiency);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateTile(){
|
||||
//Note: Do not use this delta when calculating the amount of power or the power efficiency, but use it for resource consumption if necessary.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package mindustry.world.blocks.power;
|
||||
|
||||
import arc.*;
|
||||
import arc.math.*;
|
||||
import arc.struct.*;
|
||||
import arc.util.*;
|
||||
import arc.util.io.*;
|
||||
@@ -50,6 +51,11 @@ public class PowerGenerator extends PowerDistributor{
|
||||
/** The efficiency of the producer. An efficiency of 1.0 means 100% */
|
||||
public float productionEfficiency = 0.0f;
|
||||
|
||||
@Override
|
||||
public float ambientVolume(){
|
||||
return Mathf.clamp(productionEfficiency);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getPowerProduction(){
|
||||
return powerProduction * productionEfficiency;
|
||||
|
||||
Reference in New Issue
Block a user