Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 00:50:13 +01:00
Use translation key as text if not found
Dieser Commit ist enthalten in:
Ursprung
322af00e80
Commit
0c39723d1a
@ -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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren