If display item amount is > 1000 you shouldnt care about decimals

This commit is contained in:
EggleEgg 2026-02-10 18:41:49 +01:00
parent d9d3e61c85
commit 71db3d02ab

View file

@ -241,7 +241,7 @@ public class StatValues{
if(amount != 0){
stack.add(new Table(t -> {
t.left().bottom();
t.add(amount >= 1000 ? UI.formatAmount(amount) : amount + "").name("stack amount").style(Styles.outlineLabel);
t.add(amount >= 1000 ? UI.formatAmount((int)amount) : amount + "").name("stack amount").style(Styles.outlineLabel);
t.pack();
}));
}