Update core/src/mindustry/world/blocks/experimental/BlockForge.java

This commit is contained in:
Patrick 'Quezler' Mounier
2020-12-01 09:28:22 +01:00
committed by GitHub
parent 4102c380d2
commit 1ed2b2eb2e

View File

@@ -41,7 +41,7 @@ public class BlockForge extends PayloadAcceptor{
public void setBars(){
super.setBars();
bars.add("progress", (BlockForgeBuild entity) -> new Bar("bar.progress", Pal.ammo, () -> entity.payload != null ? 1f : entity.recipe == null ? 0f : (float)(entity.progress / entity.recipe.buildCost)));
bars.add("progress", (BlockForgeBuild entity) -> new Bar("bar.progress", Pal.ammo, () -> entity.recipe == null ? 0f : (float)(entity.progress / entity.recipe.buildCost)));
}
@Override