Minor cleanup

This commit is contained in:
Anuken
2021-03-09 19:04:29 -05:00
parent 8aba480148
commit b1e8001ae8
4 changed files with 4 additions and 5 deletions

View File

@@ -21,7 +21,6 @@ import mindustry.input.*;
import mindustry.type.*;
import mindustry.ui.*;
import mindustry.world.*;
import mindustry.world.blocks.*;
import mindustry.world.blocks.ConstructBlock.*;
import static mindustry.Vars.*;
@@ -329,7 +328,7 @@ public class PlacementFragment extends Fragment{
int amount = core.items.get(stack.item);
int stackamount = Math.round(stack.amount * state.rules.buildCostMultiplier);
String color = (amount < stackamount / 2f ? "[red]" : amount < stackamount ? "[accent]" : "[white]");
String color = (amount < stackamount / 2f ? "[scarlet]" : amount < stackamount ? "[accent]" : "[white]");
return color + UI.formatAmount(amount) + "[white]/" + stackamount;
}).padLeft(5);