From 666da394531d86c901dc3e554938b466cac1b292 Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Mon, 26 May 2025 02:24:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A0=87=E9=9D=B6=E7=BC=BA?= =?UTF-8?q?=E5=B0=91=E7=9A=84m?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 4 ++-- .../java/com/atsuishio/superbwarfare/entity/TargetEntity.java | 2 +- .../com/atsuishio/superbwarfare/event/LivingEventHandler.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 88831de28..7f1916995 100644 --- a/build.gradle +++ b/build.gradle @@ -134,8 +134,8 @@ dependencies { implementation "curse.maven:jade-324717:6291517" // 帕秋莉手册 - compileOnly "curse.maven:patchouli-306770:6164617" - runtimeOnly "curse.maven:patchouli-306770:6164617" +// compileOnly "curse.maven:patchouli-306770:6164617" +// runtimeOnly "curse.maven:patchouli-306770:6164617" // Cloth Config相关 implementation "me.shedaniel.cloth:cloth-config-neoforge:15.0.140" diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/TargetEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/TargetEntity.java index 868a1a101..fa08b6152 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/TargetEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/TargetEntity.java @@ -116,7 +116,7 @@ public class TargetEntity extends LivingEntity implements GeoEntity { if (sourceEntity instanceof Player player) { player.displayClientMessage(Component.translatable("tips.superbwarfare.target.down", - FormatTool.format1D(entity.position().distanceTo(sourceEntity.position())), "m"), true); + FormatTool.format1D(entity.position().distanceTo(sourceEntity.position()), "m")), true); SoundTool.playLocalSound(player, ModSounds.TARGET_DOWN.get(), 1, 1); targetEntity.entityData.set(DOWN_TIME, 40); } diff --git a/src/main/java/com/atsuishio/superbwarfare/event/LivingEventHandler.java b/src/main/java/com/atsuishio/superbwarfare/event/LivingEventHandler.java index 3375aeaeb..4539ddce5 100644 --- a/src/main/java/com/atsuishio/superbwarfare/event/LivingEventHandler.java +++ b/src/main/java/com/atsuishio/superbwarfare/event/LivingEventHandler.java @@ -173,7 +173,7 @@ public class LivingEventHandler { if (entity instanceof TargetEntity && sourceEntity instanceof Player player) { player.displayClientMessage(Component.translatable("tips.superbwarfare.target.damage", FormatTool.format2D(damage), - FormatTool.format1D(entity.position().distanceTo(sourceEntity.position())), "m"), false); + FormatTool.format1D(entity.position().distanceTo(sourceEntity.position()), "m")), false); } }