diff --git a/IronChests2/.project b/IronChests2/.project index 594c34b..1600a76 100644 --- a/IronChests2/.project +++ b/IronChests2/.project @@ -18,12 +18,12 @@ common/mcmod.info 1 - /home/cpw/projects/gitstores/ironchests/IronChests2/mcmod.info + /home/cpw/projects/ironchests/IronChests2/mcmod.info common/version.properties 1 - /home/cpw/projects/gitstores/ironchests/IronChests2/version.properties + /home/cpw/projects/ironchests/IronChests2/version.properties diff --git a/IronChests2/client/cpw/mods/ironchest/client/TileEntityIronChestRenderer.java b/IronChests2/client/cpw/mods/ironchest/client/TileEntityIronChestRenderer.java index 199df1c..e449235 100644 --- a/IronChests2/client/cpw/mods/ironchest/client/TileEntityIronChestRenderer.java +++ b/IronChests2/client/cpw/mods/ironchest/client/TileEntityIronChestRenderer.java @@ -167,6 +167,7 @@ public class TileEntityIronChestRenderer extends TileEntitySpecialRenderer { } MappableItemStackWrapper mis = new MappableItemStackWrapper(item); if (!IronChest.CACHE_RENDER || !renderList.containsKey(mis)) { // Added support for using only old system. + // TODO add support for the skull TESR IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(item, IItemRenderer.ItemRenderType.ENTITY); if (customRenderer != null) { customitem.item = item; @@ -243,5 +244,6 @@ public class TileEntityIronChestRenderer extends TileEntitySpecialRenderer { render((TileEntityIronChest) tileentity, x, y, z, partialTick); } + private ModelChest model; } diff --git a/IronChests2/common/cpw/mods/ironchest/ContainerIronChestBase.java b/IronChests2/common/cpw/mods/ironchest/ContainerIronChestBase.java index 3f0feb8..9fa83ad 100644 --- a/IronChests2/common/cpw/mods/ironchest/ContainerIronChestBase.java +++ b/IronChests2/common/cpw/mods/ironchest/ContainerIronChestBase.java @@ -30,11 +30,13 @@ public class ContainerIronChestBase extends Container { layoutContainer(playerInventory, chestInventory, type, xSize, ySize); } + @Override public boolean canInteractWith(EntityPlayer player) { return chest.isUseableByPlayer(player); } + @Override public ItemStack func_82846_b(EntityPlayer p, int i) { ItemStack itemstack = null; @@ -64,6 +66,7 @@ public class ContainerIronChestBase extends Container { return itemstack; } + @Override public void onCraftGuiClosed(EntityPlayer entityplayer) { super.onCraftGuiClosed(entityplayer); @@ -95,6 +98,7 @@ public class ContainerIronChestBase extends Container { addSlotToContainer(new Slot(playerInventory, hotbarSlot, leftCol + hotbarSlot * 18, ySize - 24)); } } + public EntityPlayer getPlayer() { return player; }