mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix incoming player chat
This commit is contained in:
parent
6a715770e2
commit
28e4661fcf
1 changed files with 3 additions and 3 deletions
|
@ -50,13 +50,13 @@ public record TextDecoration(String translationKey, List<Parameter> parameters,
|
|||
NbtMap tag = entry.getData();
|
||||
NbtMap chat = tag.getCompound("chat", null);
|
||||
if (chat != null) {
|
||||
String translationKey = tag.getString("translation_key");
|
||||
String translationKey = chat.getString("translation_key");
|
||||
|
||||
NbtMap styleTag = tag.getCompound("style");
|
||||
NbtMap styleTag = chat.getCompound("style");
|
||||
Style style = deserializeStyle(styleTag);
|
||||
|
||||
List<ChatTypeDecoration.Parameter> parameters = new ArrayList<>();
|
||||
List<String> parametersNbt = tag.getList("parameters", NbtType.STRING);
|
||||
List<String> parametersNbt = chat.getList("parameters", NbtType.STRING);
|
||||
for (String parameter : parametersNbt) {
|
||||
parameters.add(ChatTypeDecoration.Parameter.valueOf(parameter.toUpperCase(Locale.ROOT)));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue