Headless cleanup

This commit is contained in:
Anuken
2020-10-26 11:52:33 -04:00
parent f814fa861c
commit db5298e40c
4 changed files with 4 additions and 4 deletions

View File

@@ -356,7 +356,7 @@ public class Block extends UnlockableContent{
current = entity -> entity.liquids == null ? Liquids.water : entity.liquids.current();
}
bars.add("liquid", entity -> new Bar(() -> entity.liquids.get(current.get(entity)) <= 0.001f ? Core.bundle.get("bar.liquid") : current.get(entity).localizedName,
() -> current.get(entity).barColor(), () -> entity.liquids.get(current.get(entity)) / liquidCapacity));
() -> current.get(entity).barColor(), () -> entity == null || entity.liquids == null ? 0f : entity.liquids.get(current.get(entity)) / liquidCapacity));
}
if(hasPower && consumes.hasPower()){