Dark Background behind all GUI screens with an NPC

This commit is contained in:
Kam committed 2024-02-08 05:23:26 -05:00
1 parent 5c050cbf77
commit 73da4c2964
1 file changed
+1 -1
@@ -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);