修复标靶缺少的m

This commit is contained in:
17146 2025-05-26 02:24:35 +08:00 committed by Light_Quanta
parent daefd6350f
commit 666da39453
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
3 changed files with 4 additions and 4 deletions

View file

@ -134,8 +134,8 @@ dependencies {
implementation "curse.maven:jade-324717:6291517" implementation "curse.maven:jade-324717:6291517"
// //
compileOnly "curse.maven:patchouli-306770:6164617" // compileOnly "curse.maven:patchouli-306770:6164617"
runtimeOnly "curse.maven:patchouli-306770:6164617" // runtimeOnly "curse.maven:patchouli-306770:6164617"
// Cloth Config相关 // Cloth Config相关
implementation "me.shedaniel.cloth:cloth-config-neoforge:15.0.140" implementation "me.shedaniel.cloth:cloth-config-neoforge:15.0.140"

View file

@ -116,7 +116,7 @@ public class TargetEntity extends LivingEntity implements GeoEntity {
if (sourceEntity instanceof Player player) { if (sourceEntity instanceof Player player) {
player.displayClientMessage(Component.translatable("tips.superbwarfare.target.down", 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); SoundTool.playLocalSound(player, ModSounds.TARGET_DOWN.get(), 1, 1);
targetEntity.entityData.set(DOWN_TIME, 40); targetEntity.entityData.set(DOWN_TIME, 40);
} }

View file

@ -173,7 +173,7 @@ public class LivingEventHandler {
if (entity instanceof TargetEntity && sourceEntity instanceof Player player) { if (entity instanceof TargetEntity && sourceEntity instanceof Player player) {
player.displayClientMessage(Component.translatable("tips.superbwarfare.target.damage", player.displayClientMessage(Component.translatable("tips.superbwarfare.target.damage",
FormatTool.format2D(damage), FormatTool.format2D(damage),
FormatTool.format1D(entity.position().distanceTo(sourceEntity.position())), "m"), false); FormatTool.format1D(entity.position().distanceTo(sourceEntity.position()), "m")), false);
} }
} }