Fixed language processing and chat colours being reset for no reason

This commit is contained in:
rtm516 2020-04-09 19:46:45 +01:00
parent e1d1f9ee8a
commit 1e1d2f00ae
2 changed files with 1 additions and 2 deletions

View file

@ -69,7 +69,7 @@ public class JavaChatTranslator extends PacketTranslator<ServerChatPacket> {
List<String> paramsTranslated = MessageUtils.getTranslationParams(((TranslationMessage) packet.getMessage()).getTranslationParams(), locale);
textPacket.setParameters(paramsTranslated);
textPacket.setMessage(MessageUtils.insertParams(MessageUtils.getTranslatedBedrockMessage(packet.getMessage(), locale, false), paramsTranslated));
textPacket.setMessage(MessageUtils.insertParams(MessageUtils.getTranslatedBedrockMessage(packet.getMessage(), locale, true), paramsTranslated));
} else {
textPacket.setNeedsTranslation(false);

View file

@ -188,7 +188,6 @@ public class MessageUtils {
base += "f";
break;
case RESET:
case NONE:
base += "r";
break;
default: