fix: netcmd not showing translated messages

This commit is contained in:
ChomeNS
2025-05-07 20:48:36 +07:00
parent 66f7754b78
commit 0c89ffc983
2 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
3166
3167

View File

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