diff --git a/paper-server/src/main/java/io/papermc/paper/adventure/AdventureCodecs.java b/paper-server/src/main/java/io/papermc/paper/adventure/AdventureCodecs.java index 20e835693012..7a47f0fda0f8 100644 --- a/paper-server/src/main/java/io/papermc/paper/adventure/AdventureCodecs.java +++ b/paper-server/src/main/java/io/papermc/paper/adventure/AdventureCodecs.java @@ -232,7 +232,7 @@ public String getSerializedName() { HOVER_EVENT_CODEC.optionalFieldOf("hoverEvent").forGetter(nullableGetter(Style::hoverEvent)), Codec.STRING.optionalFieldOf("insertion").forGetter(nullableGetter(Style::insertion)), KEY_CODEC.optionalFieldOf("font").forGetter(nullableGetter(Style::font)) - ).apply(instance, (textColor, shadowColor,bold, italic, underlined, strikethrough, obfuscated, clickEvent, hoverEvent, insertion, font) -> { + ).apply(instance, (textColor, shadowColor, bold, italic, underlined, strikethrough, obfuscated, clickEvent, hoverEvent, insertion, font) -> { return Style.style(builder -> { textColor.ifPresent(builder::color); shadowColor.ifPresent(builder::shadowColor);