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

@@ -74,7 +74,16 @@ public class GuiAbilityInterface extends GuiNPCInterface2 {
public int yOffset = 0;
public GuiAbilityInterface(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 GuiAbilityInterface(EntityNPCInterface npc, boolean hasMenuNpc) {
super(hasMenuNpc ? npc : null);
this.npc = npc;
this.playerdata = ((EntityCustomNpc) npc).modelData;
this.drawDefaultBackground = false;