From f31f09d77aa045b28a2d0a3f761d4fac245da1d3 Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 19 Nov 2018 16:40:33 -0500 Subject: [PATCH] Visual fix --- core/src/io/anuke/mindustry/ui/fragments/PlacementFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/io/anuke/mindustry/ui/fragments/PlacementFragment.java b/core/src/io/anuke/mindustry/ui/fragments/PlacementFragment.java index 4eb3e6b7f6..7ac10844df 100644 --- a/core/src/io/anuke/mindustry/ui/fragments/PlacementFragment.java +++ b/core/src/io/anuke/mindustry/ui/fragments/PlacementFragment.java @@ -70,7 +70,7 @@ public class PlacementFragment extends Fragment{ button.update(() -> { //color unplacable things gray boolean ulock = control.unlocks.isUnlocked(recipe); TileEntity core = players[0].getClosestCore(); - Color color = core != null && core.items.has(recipe.requirements) ? Color.WHITE : ulock ? Color.GRAY : Color.WHITE; + Color color = core != null && (core.items.has(recipe.requirements) || state.mode.infiniteResources) ? Color.WHITE : ulock ? Color.GRAY : Color.WHITE; button.forEach(elem -> elem.setColor(color)); button.setChecked(input.recipe == recipe);