mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 06:55:03 +00:00
Fix GUI Tabs
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user