diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-10-03 18:08:43 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-10-03 18:08:43 +1000 |
commit | bdb6fc4a5410d68cf517dbe90fa49cec45bbda5a (patch) | |
tree | d345344fe061e07bca20357b18457c0b9fdf475b /src/Java/gtPlusPlus/core/handler/GuiHandler.java | |
parent | e56e3fa33d84ca19a3fb0c5e72a60212f30660a7 (diff) | |
download | GT5-Unofficial-bdb6fc4a5410d68cf517dbe90fa49cec45bbda5a.tar.gz GT5-Unofficial-bdb6fc4a5410d68cf517dbe90fa49cec45bbda5a.tar.bz2 GT5-Unofficial-bdb6fc4a5410d68cf517dbe90fa49cec45bbda5a.zip |
% Gotta Re-merge these Changes with those made on my laptop.
Diffstat (limited to 'src/Java/gtPlusPlus/core/handler/GuiHandler.java')
-rw-r--r-- | src/Java/gtPlusPlus/core/handler/GuiHandler.java | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/Java/gtPlusPlus/core/handler/GuiHandler.java b/src/Java/gtPlusPlus/core/handler/GuiHandler.java index b9b3229f13..dc1903e83d 100644 --- a/src/Java/gtPlusPlus/core/handler/GuiHandler.java +++ b/src/Java/gtPlusPlus/core/handler/GuiHandler.java @@ -32,7 +32,7 @@ public class GuiHandler implements IGuiHandler { public static final int GUI6 = 5; // public static final int GUI7 = 6; // public static final int GUI8 = 7; // - + public static void init(){ @@ -60,25 +60,27 @@ public class GuiHandler implements IGuiHandler { } - + if (ID == GUI3) { // Use the player's held item to create the inventory return new Container_BackpackBase(player, player.inventory, new BaseInventoryBackpack(player.getHeldItem())); } - + if (te != null){ if (ID == GUI4){ + return new Container_Workbench(player.inventory, (TileEntityWorkbench)te); + } } - - - - - - - + + + + + + + return null; } @@ -98,20 +100,20 @@ public class GuiHandler implements IGuiHandler { //return new GUI_RTG((TileEntityRTG) te.); } } - + if (ID == GUI3) { // We have to cast the new container as our custom class // and pass in currently held item for the inventory return new GuiBaseBackpack((Container_BackpackBase) new Container_BackpackBase(player, player.inventory, new BaseInventoryBackpack(player.getHeldItem()))); } - + if (te != null){ if (ID == GUI4){ return new GUI_Workbench(player.inventory, (TileEntityWorkbench)te); } } - + return null; } |