Add missing error message argument in ClientCommandInternals(#2988)

Fixed a translation bug where "command.context.parse_error" was translated with two arguments, while it takes three as input.
This commit is contained in:
Poodn 2023-04-11 10:49:33 +02:00 committed by modmuss50
parent 1d87947a0e
commit df5b2a9d77

View file

@ -130,7 +130,7 @@ public final class ClientCommandInternals {
Text message = Texts.toText(e.getRawMessage());
String context = e.getContext();
return context != null ? Text.translatable("command.context.parse_error", message, context) : message;
return context != null ? Text.translatable("command.context.parse_error", message, e.getCursor(), context) : message;
}
/**