Fix GUI Tabs

This commit is contained in:
Kam committed 2026-02-03 16:24:47 -05:00
1 parent 769109d046
commit c80dd448cb
5 files changed
+26 -9

No files matched your search

@@ -30,10 +30,18 @@ public class GuiModelInterface2 extends GuiNPCInterface2 {
public EntityNPCInterface npc;
public GuiModelInterface2(EntityNPCInterface npc) {
super(npc);
this(npc, true);
}
/**
* @param npc The NPC for preview rendering
* @param hasMenuNpc If false, the top menu tabs (Display, Stats, etc.) are hidden.
* Use false when opened from the global menu without a real NPC.
*/
public GuiModelInterface2(EntityNPCInterface npc, boolean hasMenuNpc) {
super(hasMenuNpc ? npc : null);
this.npc = npc;
playerdata = ((EntityCustomNpc) npc).modelData;
//xSize = 380;
drawDefaultBackground = false;
}