fix fallback death message
This commit is contained in:
parent
81879b6ec4
commit
cc20e19a4b
1 changed files with 3 additions and 2 deletions
|
@ -63,8 +63,9 @@ public class KnockdownsEvents {
|
|||
|
||||
KnockdownsNetwork.sendToWorld(serverPlayer.getServerWorld(), new PlayKnockedDownSoundS2CPacket(serverPlayer.getX(), serverPlayer.getY(), serverPlayer.getZ()));
|
||||
|
||||
TranslatableTextContent content = (TranslatableTextContent) entity.getDamageTracker().getDeathMessage().getContent();
|
||||
Text replaced = Text.translatableWithFallback(content.getKey().replace("death.", "knockdown."), content.getKey(), content.getArgs());
|
||||
Text deathMessage = entity.getDamageTracker().getDeathMessage();
|
||||
TranslatableTextContent content = (TranslatableTextContent) deathMessage.getContent();
|
||||
Text replaced = Text.translatableWithFallback(content.getKey().replace("death.", "knockdown."), deathMessage.getString(), content.getArgs());
|
||||
|
||||
server.getPlayerManager().broadcast(replaced, false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue