From 0c89ffc983e1d35ae0174e72de08e62d657fb4ef Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Wed, 7 May 2025 20:48:36 +0700 Subject: [PATCH] fix: netcmd not showing translated messages --- build-number.txt | 2 +- .../chomens_bot/command/contexts/RemoteCommandContext.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build-number.txt b/build-number.txt index f594fd99..951b8498 100644 --- a/build-number.txt +++ b/build-number.txt @@ -1 +1 @@ -3166 \ No newline at end of file +3167 \ No newline at end of file diff --git a/src/main/java/me/chayapak1/chomens_bot/command/contexts/RemoteCommandContext.java b/src/main/java/me/chayapak1/chomens_bot/command/contexts/RemoteCommandContext.java index ad44e71b..242b944c 100644 --- a/src/main/java/me/chayapak1/chomens_bot/command/contexts/RemoteCommandContext.java +++ b/src/main/java/me/chayapak1/chomens_bot/command/contexts/RemoteCommandContext.java @@ -18,7 +18,7 @@ public class RemoteCommandContext extends CommandContext { @Override public void sendOutput (final Component component) { - final Component rendered = bot.commandHandler.renderTranslatable(component); + // we do not need rendering here, since that is handled by the source source.sendOutput( Component .translatable( @@ -26,7 +26,7 @@ public class RemoteCommandContext extends CommandContext { Component.text(targetBot.getServerString(), NamedTextColor.GRAY), Component.empty() .color(NamedTextColor.WHITE) - .append(rendered) + .append(component) ) .color(NamedTextColor.DARK_GRAY) );