Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +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 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);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren