Inventory constant cleanup

This commit is contained in:
Anuken
2021-07-13 17:38:42 -04:00
parent 0eec955a3d
commit e5412aeb1b
4 changed files with 6 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ import arc.scene.ui.layout.Stack;
import arc.scene.ui.layout.*;
import arc.struct.*;
import arc.util.*;
import mindustry.core.*;
import mindustry.game.EventType.*;
import mindustry.gen.*;
import mindustry.type.*;
@@ -200,9 +201,9 @@ public class BlockInventoryFragment extends Fragment{
private String round(float f){
f = (int)f;
if(f >= 1000000){
return (int)(f / 1000000f) + "[gray]" + Core.bundle.getOrNull("unit.millions") + "[]";
return (int)(f / 1000000f) + "[gray]" + UI.millions;
}else if(f >= 1000){
return (int)(f / 1000) + Core.bundle.getOrNull("unit.thousands");
return (int)(f / 1000) + UI.thousands;
}else{
return (int)f + "";
}