From 8d28135f3a89ae3fd045e4ddcf56fed44be5fa99 Mon Sep 17 00:00:00 2001 From: Brennan Ward Date: Wed, 12 Jul 2017 15:50:12 -0400 Subject: [PATCH] use isInstance instead of == (#847) --- .../actuallyadditions/mod/items/ItemChestToCrateUpgrade.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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