From b09f7f3f099463a2a2cdd3afeab55b3f136443b1 Mon Sep 17 00:00:00 2001 From: alexbegt Date: Thu, 26 Sep 2019 08:10:55 -0400 Subject: [PATCH] Fix the Vanilla chest upgrades trying to update 'I Like Wood' chests. Closes #200 --- .../ironchest/common/items/ChestChangerItem.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/progwml6/ironchest/common/items/ChestChangerItem.java b/src/main/java/com/progwml6/ironchest/common/items/ChestChangerItem.java index 438dce8..19712cb 100644 --- a/src/main/java/com/progwml6/ironchest/common/items/ChestChangerItem.java +++ b/src/main/java/com/progwml6/ironchest/common/items/ChestChangerItem.java @@ -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;