From 16051e09de01ac7bbd194525ca877edd514252d6 Mon Sep 17 00:00:00 2001 From: KrystilizeNevaDies <57762380+KrystilizeNevaDies@users.noreply.github.com> Date: Fri, 6 Nov 2020 01:15:06 +1000 Subject: [PATCH] Minor typo fix Forgot to remove reduntant hashtag --- src/main/java/net/minestom/server/chat/ChatColor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/chat/ChatColor.java b/src/main/java/net/minestom/server/chat/ChatColor.java index a43e16f8f..4a4e5a710 100644 --- a/src/main/java/net/minestom/server/chat/ChatColor.java +++ b/src/main/java/net/minestom/server/chat/ChatColor.java @@ -262,10 +262,10 @@ public class ChatColor { // color or special code (white/red/reset/bold/etc...) code = codeName; } else { - // RGB color + // RGB color (special code not set) int color = (red & 0xFF) << 16 | (green & 0xFF) << 8 | blue & 0xFF; - code = "#"+Integer.toHexString(color); + code = Integer.toHexString(color); } return header + code + footer;