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

@@ -420,7 +420,7 @@ public class Block extends BlockStorage{
boolean buffered = consumes.getPower().isBuffered;
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));
}