Fixed #9537
This commit is contained in:
@@ -31,7 +31,7 @@ public class Schematic implements Publishable, Comparable<Schematic>{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public float powerProduction(){
|
public float powerProduction(){
|
||||||
return tiles.sumf(s -> s.block instanceof PowerGenerator p ? p.powerProduction : 0f);
|
return tiles.sumf(s -> s.block instanceof PowerGenerator p ? p.getDisplayedPowerProduction() : 0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
public float powerConsumption(){
|
public float powerConsumption(){
|
||||||
|
|||||||
@@ -46,6 +46,10 @@ public class PowerGenerator extends PowerDistributor{
|
|||||||
flags = EnumSet.of(BlockFlag.generator);
|
flags = EnumSet.of(BlockFlag.generator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public float getDisplayedPowerProduction(){
|
||||||
|
return powerProduction;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TextureRegion[] icons(){
|
public TextureRegion[] icons(){
|
||||||
return drawer.finalIcons(this);
|
return drawer.finalIcons(this);
|
||||||
|
|||||||
@@ -26,6 +26,11 @@ public class ThermalGenerator extends PowerGenerator{
|
|||||||
noUpdateDisabled = true;
|
noUpdateDisabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float getDisplayedPowerProduction(){
|
||||||
|
return powerProduction / displayEfficiencyScale;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void init(){
|
public void init(){
|
||||||
if(outputLiquid != null){
|
if(outputLiquid != null){
|
||||||
|
|||||||
Reference in New Issue
Block a user