Slag Incinerator Rework: No Slag Consumption Rate (#10197)

* Slag Incinerator: No Slag Consumption Rate

* If Amount = 0 in LiquidDisplay, Don't display /sec

* reinstated changes

* Delete core/src/mindustry/ui/LiquidDisplay.java

---------

Co-authored-by: Anuken <arnukren@gmail.com>
This commit is contained in:
SomeonesShade 2024-10-05 03:33:06 +08:00 committed by GitHub
parent ac5a9f4563
commit 4f08873bb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1342,7 +1342,7 @@ public class Blocks{
slagIncinerator = new ItemIncinerator("slag-incinerator"){{
requirements(Category.crafting, with(Items.tungsten, 15));
size = 1;
consumeLiquid(Liquids.slag, 2f / 60f);
consumeLiquid(Liquids.slag, 0f);
}};
carbideCrucible = new HeatCrafter("carbide-crucible"){{

View File

@ -152,7 +152,7 @@ public class StatValues{
}
}}).size(iconMed).padRight(3 + (amount != 0 && Strings.autoFixed(amount, 2).length() > 2 ? 8 : 0)).with(s -> withTooltip(s, liquid, false));
if(perSecond){
if(perSecond && amount != 0){
t.add(StatUnit.perSecond.localized()).padLeft(2).padRight(5).color(Color.lightGray).style(Styles.outlineLabel);
}