mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 13:07:29 +00:00
Inventory Tab Fixes
- Super Class now Registers Inventory Tabs - Side Button Actions now moved to Super Class - First Pass for Registering Top Tab Values (no offset error) - Minecraft.getMinecraft() moved to the top level
This commit is contained in:
1 parent
e39855ddd3
commit
9d73db3076
7 files changed
+33
-66
No files matched your search
@@ -27,15 +27,12 @@ public class InventoryTabCustomNpc extends AbstractTab {
|
||||
e.printStackTrace();
|
||||
}
|
||||
Minecraft mc = Minecraft.getMinecraft();
|
||||
if(mc.currentScreen instanceof GuiCNPCInventory)
|
||||
return;
|
||||
|
||||
switch (GuiCNPCInventory.activeTab){
|
||||
case 0:
|
||||
mc.displayGuiScreen(new GuiQuestLog(mc.thePlayer));
|
||||
mc.displayGuiScreen(new GuiQuestLog());
|
||||
break;
|
||||
case 1:
|
||||
mc.displayGuiScreen(new GuiParty(mc.thePlayer));
|
||||
mc.displayGuiScreen(new GuiParty());
|
||||
break;
|
||||
case 2:
|
||||
mc.displayGuiScreen(new GuiFaction());
|
||||
|
||||
Reference in new issue
Block a user