Update some stuff. Skulls don't render in crystal chest as blocks because they're a TESR with no block render model.
This commit is contained in:
parent
cea769047a
commit
61b34db3b4
|
@ -18,12 +18,12 @@
|
|||
<link>
|
||||
<name>common/mcmod.info</name>
|
||||
<type>1</type>
|
||||
<location>/home/cpw/projects/gitstores/ironchests/IronChests2/mcmod.info</location>
|
||||
<location>/home/cpw/projects/ironchests/IronChests2/mcmod.info</location>
|
||||
</link>
|
||||
<link>
|
||||
<name>common/version.properties</name>
|
||||
<type>1</type>
|
||||
<location>/home/cpw/projects/gitstores/ironchests/IronChests2/version.properties</location>
|
||||
<location>/home/cpw/projects/ironchests/IronChests2/version.properties</location>
|
||||
</link>
|
||||
</linkedResources>
|
||||
</projectDescription>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue