Skip to content

Commit

Permalink
fix(text-serializer-gson): One more strictness thing
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Jun 7, 2023
1 parent 37f030b commit 8d6213a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public void write(final JsonWriter out, final Style value) throws IOException {
}

final @Nullable HoverEvent<?> hoverEvent = value.hoverEvent();
if (hoverEvent != null) {
if (hoverEvent != null && (hoverEvent.action() != HoverEvent.Action.SHOW_ACHIEVEMENT || this.emitLegacyHover)) {
out.name(HOVER_EVENT);
out.beginObject();
out.name(HOVER_EVENT_ACTION);
Expand Down

0 comments on commit 8d6213a

Please sign in to comment.