From ac9e16309af156ab29ac944549d50558ba1df5f7 Mon Sep 17 00:00:00 2001 From: mystchonky Date: Sat, 11 Nov 2023 21:27:19 +0530 Subject: [PATCH] move color to constant --- .../com/enderio/machines/client/gui/screen/MachineScreen.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/machines/java/com/enderio/machines/client/gui/screen/MachineScreen.java b/src/machines/java/com/enderio/machines/client/gui/screen/MachineScreen.java index 0331858b77..328ca707f6 100644 --- a/src/machines/java/com/enderio/machines/client/gui/screen/MachineScreen.java +++ b/src/machines/java/com/enderio/machines/client/gui/screen/MachineScreen.java @@ -10,6 +10,7 @@ import net.minecraft.world.inventory.Slot; public abstract class MachineScreen extends EIOScreen { + public final static int slotColor = -2130706433; protected MachineScreen(T pMenu, Inventory pPlayerInventory, Component pTitle) { super(pMenu, pPlayerInventory, pTitle); } @@ -26,7 +27,7 @@ public void renderSlot(GuiGraphics guiGraphics, Slot slot) { if (slot.hasItem()) { guiGraphics.pose().pushPose(); guiGraphics.pose().translate(0.0F, 0.0F, 300F); - guiGraphics.fill(slot.x, slot.y, slot.x + 16, slot.y + 16, -2130706433); + guiGraphics.fill(slot.x, slot.y, slot.x + 16, slot.y + 16, slotColor); guiGraphics.pose().popPose(); } }