mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
use isInstance instead of == (#847)
This commit is contained in:
parent
2252bb094e
commit
8d28135f3a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue