mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-22 12:16:21 +01:00
Interpret translation keys with %s as the raw translation
This commit is contained in:
parent
9d86b31cb7
commit
282afe94cc
@ -339,7 +339,7 @@ public final class Protocol1_18_2To1_19_1 extends BackwardsProtocol<ClientboundP
|
||||
}
|
||||
|
||||
String translationKey = (String) chatType.get("translation_key").getValue();
|
||||
String rawTranslation = ViaBackwards.getConfig().chatTypeFormat(translationKey);
|
||||
String rawTranslation = translationKey.contains("%s") ? translationKey : ViaBackwards.getConfig().chatTypeFormat(translationKey);
|
||||
if (rawTranslation == null) {
|
||||
ViaBackwards.getPlatform().getLogger().warning("Missing chat type translation for key " + translationKey);
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user