修复标靶缺少的m
This commit is contained in:
parent
daefd6350f
commit
666da39453
3 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue