diff --git a/src/main/java/slimeknights/mantle/block/InventoryBlock.java b/src/main/java/slimeknights/mantle/block/InventoryBlock.java index 5f0e584..1728f3b 100644 --- a/src/main/java/slimeknights/mantle/block/InventoryBlock.java +++ b/src/main/java/slimeknights/mantle/block/InventoryBlock.java @@ -76,14 +76,17 @@ public abstract class InventoryBlock extends Block { TileEntity tileentity = worldIn.getTileEntity(pos); if (tileentity instanceof InventoryTileEntity) { - InventoryHelper.dropInventoryItems(worldIn, pos, (IInventory) tileentity); + dropInventoryItems(state, worldIn, pos, tileentity); worldIn.updateComparatorOutputLevel(pos, this); } } - super.onReplaced(state, worldIn, pos, newState, isMoving); } + protected void dropInventoryItems(BlockState state, World worldIn, BlockPos pos, TileEntity tileentity) { + InventoryHelper.dropInventoryItems(worldIn, pos, (IInventory) tileentity); + } + // BlockContainer sets this to invisible // we need model for standard forge rendering @Nonnull