From 44f9836bd1542e381f8fd0a57c76d7a4b2f0008a Mon Sep 17 00:00:00 2001 From: Lance5057 Date: Wed, 25 Feb 2015 03:30:35 -0600 Subject: Crest Mount finally stores items properly! --- src/main/java/gmail/Lance5057/gui/Gui_CrestMount.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java/gmail/Lance5057/gui') diff --git a/src/main/java/gmail/Lance5057/gui/Gui_CrestMount.java b/src/main/java/gmail/Lance5057/gui/Gui_CrestMount.java index 1ab1356..d7f6fad 100644 --- a/src/main/java/gmail/Lance5057/gui/Gui_CrestMount.java +++ b/src/main/java/gmail/Lance5057/gui/Gui_CrestMount.java @@ -11,6 +11,7 @@ import net.minecraft.client.renderer.RenderHelper; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.client.resources.I18n; import net.minecraft.entity.EntityLivingBase; +import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; @@ -30,10 +31,10 @@ private static final ResourceLocation iconLocation = new ResourceLocation("TileE /** The inventory to render on screen */ private final TileEntity_CrestMount inventory; -public Gui_CrestMount(Container_CrestMount Container_CrestMount) +public Gui_CrestMount(InventoryPlayer invPlayer, TileEntity_CrestMount te_crest) { -super(Container_CrestMount); -this.inventory = Container_CrestMount.inventory; +super(new Container_CrestMount(invPlayer, te_crest)); +this.inventory = te_crest; } /** -- cgit v1.2.3