1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-28 03:09:08 +00:00

Fix sign reading in specific cases where the "text" key is omitted

This commit is contained in:
onebeastchris
2025-04-03 13:18:03 +02:00
parent c47264d126
commit ae130cf5a5

View File

@@ -458,7 +458,7 @@ public class MessageTranslator {
return Component.join(JoinConfiguration.noSeparators(), componentsFromNbtList(list, style));
} else if (nbtTag instanceof NbtMap map) {
Component component = null;
String text = map.getString("text", null);
String text = map.getString("text", map.getString("", null));
if (text != null) {
component = Component.text(text);
} else {