mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-07 14:31:12 -08:00
If display item amount is > 1000 you shouldnt care about decimals
This commit is contained in:
parent
d9d3e61c85
commit
71db3d02ab
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue