summaryrefslogtreecommitdiff
path: root/java/darkknight/jewelrycraft/client/GuiJewelry.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/darkknight/jewelrycraft/client/GuiJewelry.java')
-rw-r--r--java/darkknight/jewelrycraft/client/GuiJewelry.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/java/darkknight/jewelrycraft/client/GuiJewelry.java b/java/darkknight/jewelrycraft/client/GuiJewelry.java
index 1d31770..0f8e59a 100644
--- a/java/darkknight/jewelrycraft/client/GuiJewelry.java
+++ b/java/darkknight/jewelrycraft/client/GuiJewelry.java
@@ -5,6 +5,7 @@ import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
import darkknight.jewelrycraft.container.ContainerJewelryTab;
+import darkknight.jewelrycraft.container.JewelryInventory;
import darkknight.jewelrycraft.events.KeyBindings;
public class GuiJewelry extends GuiContainer
@@ -54,4 +55,15 @@ public class GuiJewelry extends GuiContainer
super.keyTyped(charecter, key);
if (key == KeyBindings.inventory.getKeyCode()) mc.thePlayer.closeScreen();
}
+
+ @Override
+ public void initGui ()
+ {
+ super.initGui();
+ int cornerX = guiLeft;
+ int cornerY = guiTop;
+ this.buttonList.clear();
+ TabRegistry.updateTabValues(cornerX, cornerY, TabJewelry.class);
+ TabRegistry.addTabsToList(this.buttonList);
+ }
}