File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
bukkit/src/main/java/com/github/juliarn/npclib/bukkit/protocol Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -543,7 +543,7 @@ private static final class Lazy {
543
543
if (component .rawMessage () != null ) {
544
544
return AdventureSerializer .fromLegacyFormat (component .rawMessage ());
545
545
} else {
546
- return AdventureSerializer .getGsonSerializer (). deserializeOrNull (component .encodedJsonMessage ());
546
+ return AdventureSerializer .parseComponent (component .encodedJsonMessage ());
547
547
}
548
548
}));
549
549
} else {
@@ -562,7 +562,7 @@ private static final class Lazy {
562
562
.put (Float .class , EntityDataTypes .FLOAT )
563
563
.put (Boolean .class , EntityDataTypes .BOOLEAN )
564
564
.put (String .class , EntityDataTypes .STRING )
565
- .put (OPTIONAL_CHAT_COMPONENT_TYPE , EntityDataTypes .OPTIONAL_COMPONENT )
565
+ .put (OPTIONAL_CHAT_COMPONENT_TYPE , EntityDataTypes .OPTIONAL_ADV_COMPONENT )
566
566
.put (com .github .retrooper .packetevents .protocol .entity .pose .EntityPose .class , EntityDataTypes .ENTITY_POSE )
567
567
.build ();
568
568
}
You can’t perform that action at this time.
0 commit comments