From 13de62500b13e32c423ba0653f4f184d8c75849b Mon Sep 17 00:00:00 2001 From: Reece Mackie <20544390+Rover656@users.noreply.github.com> Date: Wed, 11 Dec 2024 01:05:36 +0000 Subject: [PATCH] fix: Playing unnecessary pickup noise after fixing conduit dupe --- .../conduits/common/conduit/block/ConduitBundleBlock.java | 6 ------ 1 file changed, 6 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 bfdbfcd5d8..8f9639d721 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 @@ -301,12 +301,6 @@ public static void handleShiftYeta(PlayerInteractEvent.RightClickBlock event) { Holder> conduit = blockEntity.getShape().getConduit(event.getPos(), event.getHitVec()); if (conduit != null) { blockEntity.removeTypeAndDelete(event.getEntity(), conduit); - if (event.getLevel() instanceof ServerLevel serverLevel) { - 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); - } - event.setCanceled(true); } }