mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
remove tile entity instead of clearing out chest with chest to crate upgrade
Closes #752
This commit is contained in:
parent
0e1a4c94be
commit
aa2decf688
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue