Fix the Vanilla chest upgrades trying to update 'I Like Wood' chests. Closes #200
This commit is contained in:
parent
6e9f312edc
commit
b09f7f3f09
|
|
@ -66,6 +66,15 @@ public class ChestChangerItem extends TooltipItem
|
|||
}
|
||||
|
||||
TileEntity tileEntity = world.getTileEntity(blockPos);
|
||||
|
||||
if (this.type.canUpgrade(ChestType.WOOD))
|
||||
{
|
||||
if (!(tileEntity instanceof ChestTileEntity))
|
||||
{
|
||||
return ActionResultType.PASS;
|
||||
}
|
||||
}
|
||||
|
||||
IronChestTileEntity newChest = new IronChestTileEntity();
|
||||
|
||||
ITextComponent customName = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue