mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-09-26 05:32:54 +02:00
Use translation key as text if not found
This commit is contained in:
parent
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);
|
||||
|
Loading…
Reference in New Issue
Block a user