diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemChestToCrateUpgrade.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemChestToCrateUpgrade.java index 3060f32ab..7ba6430c7 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemChestToCrateUpgrade.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemChestToCrateUpgrade.java @@ -44,7 +44,7 @@ public class ItemChestToCrateUpgrade extends ItemBase{ ItemStack heldStack = player.getHeldItem(hand); if(player.isSneaking()){ TileEntity tileHit = world.getTileEntity(pos); - if(tileHit != null && tileHit.getClass() == this.start){ + if(tileHit != null && start.isInstance(tileHit)){ if(!world.isRemote){ //Copy Slots