mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
Fix hex color check
This commit is contained in:
parent
0adf5876db
commit
8d3c6e1052
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user