diff --git a/patches/server/Adventure.patch b/patches/server/Adventure.patch index 4de7e0f593..e80232d60e 100644 --- a/patches/server/Adventure.patch +++ b/patches/server/Adventure.patch @@ -5606,6 +5606,15 @@ diff --git a/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java b/s index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java +++ b/src/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java +@@ -0,0 +0,0 @@ public final class CraftChatMessage { + this.hex.append(c); + + if (this.hex.length() == 7) { +- this.modifier = StringMessage.RESET.withColor(TextColor.parseColor(this.hex.toString()).result().get()); ++ this.modifier = StringMessage.RESET.withColor(TextColor.parseColor(this.hex.toString()).result().orElse(null)); // Paper + this.hex = null; + } + } else if (format.isFormat() && format != ChatFormatting.RESET) { @@ -0,0 +0,0 @@ public final class CraftChatMessage { public static String fromComponent(Component component) {