13
0
geforkt von Mirrors/Paper

Fix hex color check

Dieser Commit ist enthalten in:
Nassim Jahnke 2024-10-02 13:49:39 +02:00
Ursprung 0adf5876db
Commit 8d3c6e1052

Datei anzeigen

@ -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) {