From 833bb8a85e166ec4b9edc574730bcf4a490add26 Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Sat, 24 May 2025 14:46:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=94=BB=E5=87=BB=E5=8A=A8?= =?UTF-8?q?=E4=BD=9C=E7=9A=84=E6=91=87=E6=89=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../superbwarfare/network/message/send/MeleeAttackMessage.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/network/message/send/MeleeAttackMessage.java b/src/main/java/com/atsuishio/superbwarfare/network/message/send/MeleeAttackMessage.java index 1c44a2889..95f3ebdc7 100644 --- a/src/main/java/com/atsuishio/superbwarfare/network/message/send/MeleeAttackMessage.java +++ b/src/main/java/com/atsuishio/superbwarfare/network/message/send/MeleeAttackMessage.java @@ -8,7 +8,6 @@ import net.minecraft.core.UUIDUtil; import net.minecraft.network.codec.StreamCodec; import net.minecraft.network.protocol.common.custom.CustomPacketPayload; import net.minecraft.sounds.SoundSource; -import net.minecraft.world.InteractionHand; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.player.Player; import net.neoforged.neoforge.network.handling.IPayloadContext; @@ -32,7 +31,6 @@ public record MeleeAttackMessage(UUID uuid) implements CustomPacketPayload { if (lookingEntity != null) { player.level().playSound(null, lookingEntity.getOnPos(), ModSounds.MELEE_HIT.get(), SoundSource.PLAYERS, 1, (float) ((2 * org.joml.Math.random() - 1) * 0.1f + 1.0f)); player.attack(lookingEntity); - player.swing(InteractionHand.MAIN_HAND, true); } }