Skip to content

Commit ae130cf

Browse files
committed
Fix sign reading in specific cases where the "text" key is omitted
1 parent c47264d commit ae130cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/geysermc/geyser/translator/text/MessageTranslator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ private static Component componentFromNbtTag(Object nbtTag, Style style) {
458458
return Component.join(JoinConfiguration.noSeparators(), componentsFromNbtList(list, style));
459459
} else if (nbtTag instanceof NbtMap map) {
460460
Component component = null;
461-
String text = map.getString("text", null);
461+
String text = map.getString("text", map.getString("", null));
462462
if (text != null) {
463463
component = Component.text(text);
464464
} else {

0 commit comments

Comments
 (0)