diff --git a/src/main/java/slimeknights/mantle/block/InventoryBlock.java b/src/main/java/slimeknights/mantle/block/InventoryBlock.java index d264764a..a7122232 100644 --- a/src/main/java/slimeknights/mantle/block/InventoryBlock.java +++ b/src/main/java/slimeknights/mantle/block/InventoryBlock.java @@ -103,11 +103,11 @@ public MenuProvider getMenuProvider(BlockState state, Level worldIn, BlockPos po @Override public void onRemove(BlockState state, Level worldIn, BlockPos pos, BlockState newState, boolean isMoving) { if (state.getBlock() != newState.getBlock()) { - Storage inventory = ItemStorage.SIDED.find(worldIn, pos, null); - if (inventory != null) + Storage inventory = ItemStorage.SIDED.find(worldIn, pos, state, null, null); + if (inventory != null) { dropInventoryItems(state, worldIn, pos, inventory); - if (worldIn.getBlockEntity(pos) != null) worldIn.updateNeighbourForOutputSignal(pos, this); + } } super.onRemove(state, worldIn, pos, newState, isMoving);