From 54fc27912e9932ff329bec8e5cfd80090ecd0904 Mon Sep 17 00:00:00 2001 From: Reece Mackie <20544390+Rover656@users.noreply.github.com> Date: Wed, 11 Dec 2024 00:57:46 +0000 Subject: [PATCH] fix: Conduit dupe when breaking with yeta wrench Fixes: GH-914 --- .../conduits/common/conduit/block/ConduitBundleBlock.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/enderio-conduits/src/main/java/com/enderio/conduits/common/conduit/block/ConduitBundleBlock.java b/enderio-conduits/src/main/java/com/enderio/conduits/common/conduit/block/ConduitBundleBlock.java index 0ba88cee7b..bfdbfcd5d8 100644 --- a/enderio-conduits/src/main/java/com/enderio/conduits/common/conduit/block/ConduitBundleBlock.java +++ b/enderio-conduits/src/main/java/com/enderio/conduits/common/conduit/block/ConduitBundleBlock.java @@ -302,9 +302,6 @@ public static void handleShiftYeta(PlayerInteractEvent.RightClickBlock event) { if (conduit != null) { blockEntity.removeTypeAndDelete(event.getEntity(), conduit); if (event.getLevel() instanceof ServerLevel serverLevel) { - Inventory inventory = event.getEntity().getInventory(); - inventory.placeItemBackInInventory(ConduitBlockItem.getStackFor(conduit, 1)); - ServerPlayer player = (ServerPlayer) event.getEntity(); event.getLevel().playSound(null, event.getPos(), SoundEvents.ITEM_PICKUP, SoundSource.PLAYERS, 0.2f, ((player.getRandom().nextFloat() - player.getRandom().nextFloat()) * 0.7F + 1.0F) * 2.0F);