Fix the Vanilla chest upgrades trying to update 'I Like Wood' chests. Closes #200

This commit is contained in:
alexbegt 2019-09-26 08:10:55 -04:00
parent 6e9f312edc
commit b09f7f3f09
1 changed files with 9 additions and 0 deletions

View File

@ -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;