Skip to content

Commit

Permalink
chore: resolve packetevents deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
derklaro committed Jan 20, 2025
1 parent 5e9b9df commit 5ff3c18
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ private static final class Lazy {
if (component.rawMessage() != null) {
return AdventureSerializer.fromLegacyFormat(component.rawMessage());
} else {
return AdventureSerializer.getGsonSerializer().deserializeOrNull(component.encodedJsonMessage());
return AdventureSerializer.parseComponent(component.encodedJsonMessage());
}
}));
} else {
Expand All @@ -562,7 +562,7 @@ private static final class Lazy {
.put(Float.class, EntityDataTypes.FLOAT)
.put(Boolean.class, EntityDataTypes.BOOLEAN)
.put(String.class, EntityDataTypes.STRING)
.put(OPTIONAL_CHAT_COMPONENT_TYPE, EntityDataTypes.OPTIONAL_COMPONENT)
.put(OPTIONAL_CHAT_COMPONENT_TYPE, EntityDataTypes.OPTIONAL_ADV_COMPONENT)
.put(com.github.retrooper.packetevents.protocol.entity.pose.EntityPose.class, EntityDataTypes.ENTITY_POSE)
.build();
}
Expand Down

0 comments on commit 5ff3c18

Please sign in to comment.