Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2025-01-11 15:41:03 +01:00
Interpret translation keys with %s as the raw translation
Dieser Commit ist enthalten in:
Ursprung
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 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) {
|
if (rawTranslation == null) {
|
||||||
ViaBackwards.getPlatform().getLogger().warning("Missing chat type translation for key " + translationKey);
|
ViaBackwards.getPlatform().getLogger().warning("Missing chat type translation for key " + translationKey);
|
||||||
return null;
|
return null;
|
||||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren