Power amount message for buffered blocks

This commit is contained in:
Anuken
2019-04-04 15:06:27 -04:00
parent 2d18df2011
commit bf56200c06
2 changed files with 2 additions and 1 deletions

View File

@ -378,6 +378,7 @@ blocks.ammo = Ammo
bar.drillspeed = Drill Speed: {0}/s bar.drillspeed = Drill Speed: {0}/s
bar.efficiency = Efficiency: {0}% bar.efficiency = Efficiency: {0}%
bar.powerbalance = Power: {0}/s bar.powerbalance = Power: {0}/s
bar.poweramount = Power: {0}
bar.poweroutput = Power Output: {0} bar.poweroutput = Power Output: {0}
bar.items = Items: {0} bar.items = Items: {0}
bar.liquid = Liquid bar.liquid = Liquid

View File

@ -420,7 +420,7 @@ public class Block extends BlockStorage{
boolean buffered = consumes.getPower().isBuffered; boolean buffered = consumes.getPower().isBuffered;
float capacity = consumes.getPower().powerCapacity; float capacity = consumes.getPower().powerCapacity;
bars.add("power", entity -> new Bar(() -> buffered ? Core.bundle.format("bar.powerbalance", Float.isNaN(entity.power.satisfaction * capacity) ? "<ERROR>" : (int)(entity.power.satisfaction * capacity)) : bars.add("power", entity -> new Bar(() -> buffered ? Core.bundle.format("bar.poweramount", Float.isNaN(entity.power.satisfaction * capacity) ? "<ERROR>" : (int)(entity.power.satisfaction * capacity)) :
Core.bundle.get("bar.power"), () -> Pal.powerBar, () -> entity.power.satisfaction)); Core.bundle.get("bar.power"), () -> Pal.powerBar, () -> entity.power.satisfaction));
} }