Small Fix

This commit is contained in:
Kam committed 2025-02-18 04:34:53 -05:00
1 parent 030b44035e
commit 78380c3e09
1 file changed
+11 -7
@@ -57,19 +57,20 @@ public class GuiNPCManageLinked extends GuiNPCInterface2 implements IScrollData,
public GuiNPCManageLinked(EntityNPCInterface npc){
super(npc);
// Spoof NPC
this.npc = new EntityCustomNpc(Minecraft.getMinecraft().theWorld);
this.npc.display.name = "Linked NPC";
this.npc.height = 1.62f;
this.npc.width = 0.43f;
resetNPC();
if(tab == 0)
LinkedGetAllPacket.GetNPCs();
else if(tab == 1)
LinkedGetAllPacket.GetItems();
}
public void resetNPC(){
this.npc = new EntityCustomNpc(Minecraft.getMinecraft().theWorld);
this.npc.display.name = "Linked NPC";
this.npc.height = 1.62f;
this.npc.width = 0.43f;
}
@Override
public void initGui(){
super.initGui();
@@ -243,11 +244,14 @@ public class GuiNPCManageLinked extends GuiNPCInterface2 implements IScrollData,
}
if(button.id == 10){
tab = 0;
resetNPC();
LinkedGetAllPacket.GetNPCs();
scroll.setSelected("");
}
if(button.id == 11){
tab = 1;
LinkedGetAllPacket.GetItems();
scroll.setSelected("");
}
if(linkedItem == null)