mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +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);
|
ItemStack heldStack = player.getHeldItem(hand);
|
||||||
if(player.isSneaking()){
|
if(player.isSneaking()){
|
||||||
TileEntity tileHit = world.getTileEntity(pos);
|
TileEntity tileHit = world.getTileEntity(pos);
|
||||||
if(tileHit != null && tileHit.getClass() == this.start){
|
if(tileHit != null && start.isInstance(tileHit)){
|
||||||
if(!world.isRemote){
|
if(!world.isRemote){
|
||||||
|
|
||||||
//Copy Slots
|
//Copy Slots
|
||||||
|
|
Loading…
Reference in a new issue