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); } }