From 75ca155776f0717842f0e1bd2c8916ad49c73388 Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Tue, 13 May 2025 14:04:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../atsuishio/superbwarfare/event/GunEventHandler.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/event/GunEventHandler.java b/src/main/java/com/atsuishio/superbwarfare/event/GunEventHandler.java index 73c9ec0bf..41c748f6f 100644 --- a/src/main/java/com/atsuishio/superbwarfare/event/GunEventHandler.java +++ b/src/main/java/com/atsuishio/superbwarfare/event/GunEventHandler.java @@ -198,8 +198,7 @@ public class GunEventHandler { String origin = stack.getItem().getDescriptionId(); String name = origin.substring(origin.lastIndexOf(".") + 1); - SoundEvent sound1p; - sound1p = BuiltInRegistries.SOUND_EVENT.get(Mod.loc(name + "_reload_normal")); + SoundEvent sound1p = BuiltInRegistries.SOUND_EVENT.get(Mod.loc(name + "_reload_normal")); if (sound1p != null && player instanceof ServerPlayer serverPlayer) { SoundTool.playLocalSound(serverPlayer, sound1p, 10f, 1f); @@ -220,13 +219,6 @@ public class GunEventHandler { reload.iterativeLoadTimer.reduce(); reload.finishTimer.reduce(); -// player.displayClientMessage(Component.literal("prepare: " + new DecimalFormat("##.#").format(data.reload.prepareTimer.get()) -// + " prepare_load: " + new DecimalFormat("##.#").format(data.reload.iterativeLoadTimer.get()) -// + " iterative: " + new DecimalFormat("##.#").format(tag.getDouble("IterativeLoadTime")) -// + " finish: " + new DecimalFormat("##.#").format(tag.getDouble("FinishTime")) -// + " reload_stage: " + new DecimalFormat("##.#").format(tag.getDouble("reload_stage")) -// ), true); - // 一阶段 if (reload.singleReloadStarter.start()) { NeoForge.EVENT_BUS.post(new ReloadEvent.Pre(player, data));