From 5d7c607ff5b80f8bb7ad2e01157414f9420aa594 Mon Sep 17 00:00:00 2001 From: Bjarne Koll Date: Fri, 27 Dec 2024 21:25:36 +0100 Subject: [PATCH] Formatting --- .../main/java/io/papermc/paper/adventure/AdventureCodecs.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);