remove tile entity instead of clearing out chest with chest to crate upgrade

Closes #752
This commit is contained in:
Ellpeck 2017-05-03 14:45:22 +02:00
parent 0e1a4c94be
commit aa2decf688

View file

@ -62,12 +62,13 @@ public class ItemChestToCrateUpgrade extends ItemBase{
ItemStack aStack = chest.getStackInSlot(i);
if(StackUtil.isValid(aStack)){
stacks[i] = aStack.copy();
chest.setStackInSlot(i, StackUtil.getNull());
}
}
//Set New Block
world.playEvent(2001, pos, Block.getStateId(world.getBlockState(pos)));
world.removeTileEntity(pos);
world.setBlockState(pos, this.end, 2);
//Copy Items into new Chest