From 73da4c296481ec2d277d4296034842c400ea4035 Mon Sep 17 00:00:00 2001 From: Kam Date: Thu, 8 Feb 2024 05:23:26 -0500 Subject: [PATCH] Dark Background behind all GUI screens with an NPC --- .../noppes/npcs/client/gui/util/GuiContainerNPCInterface2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/noppes/npcs/client/gui/util/GuiContainerNPCInterface2.java b/src/main/java/noppes/npcs/client/gui/util/GuiContainerNPCInterface2.java index 7042e6394..abf6ef930 100644 --- a/src/main/java/noppes/npcs/client/gui/util/GuiContainerNPCInterface2.java +++ b/src/main/java/noppes/npcs/client/gui/util/GuiContainerNPCInterface2.java @@ -24,6 +24,7 @@ public abstract class GuiContainerNPCInterface2 extends GuiContainerNPCInterface this.xSize = 420; this.menu = new GuiNpcMenu(this,activeMenu,npc); title = ""; + drawDefaultBackground = true; } public void setBackground(String texture){ background = new ResourceLocation("customnpcs","textures/gui/" + texture); @@ -56,7 +57,6 @@ public abstract class GuiContainerNPCInterface2 extends GuiContainerNPCInterface @Override protected void drawGuiContainerBackgroundLayer(float f, int i, int j) { - drawDefaultBackground(); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); mc.renderEngine.bindTexture(background); drawTexturedModalRect(guiLeft, guiTop, 0, 0, 256, 256);