3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-07-05 23:28:03 +02:00

Interpret translation keys with %s as the raw translation

Dieser Commit ist enthalten in:
Gero 2022-07-01 15:20:54 +02:00
Ursprung 9d86b31cb7
Commit 282afe94cc

Datei anzeigen

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