3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-09-08 13:52:50 +02:00

Use translation key as text if not found

Dieser Commit ist enthalten in:
Nassim Jahnke 2022-07-28 13:43:08 +02:00
Ursprung 322af00e80
Commit 0c39723d1a
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -283,10 +283,9 @@ public final class Protocol1_19_1To1_19 extends AbstractProtocol<ClientboundPack
}
final String translationKey = (String) decoaration.get("translation_key").getValue();
final String rawTranslation = Via.getConfig().chatTypeFormat(translationKey);
String rawTranslation = Via.getConfig().chatTypeFormat(translationKey);
if (rawTranslation == null) {
Via.getPlatform().getLogger().warning("Missing chat type translation for key " + translationKey);
return false;
rawTranslation = translationKey;
}
Component component = Component.text(rawTranslation);