Fix a crash with the chest to crate upgrade

Closes #499
This commit is contained in:
Ellpeck 2016-12-18 11:21:55 +01:00
parent 81375683d0
commit bea1b4e798

View file

@ -44,7 +44,7 @@ public class ItemChestToCrateUpgrade extends ItemBase{
ItemStack heldStack = player.getHeldItem(hand);
if(player.isSneaking()){
TileEntity tileHit = world.getTileEntity(pos);
if(tileHit.getClass() == this.start){
if(tileHit != null && tileHit.getClass() == this.start){
if(!world.isRemote){
//Copy Slots