3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-28 17:10:13 +01: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 translationKey = (String) decoaration.get("translation_key").getValue();
final String rawTranslation = Via.getConfig().chatTypeFormat(translationKey); String rawTranslation = Via.getConfig().chatTypeFormat(translationKey);
if (rawTranslation == null) { if (rawTranslation == null) {
Via.getPlatform().getLogger().warning("Missing chat type translation for key " + translationKey); rawTranslation = translationKey;
return false;
} }
Component component = Component.text(rawTranslation); Component component = Component.text(rawTranslation);