bugfix: restore full color depth for hex color codes (§#RRGGBB)

bugfix: restore full color depth for hex color codes (§#RRGGBB)
This commit is contained in:
Anon 2026-06-17 11:07:59 +02:00 committed by GitHub
commit 72200fc1ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,7 +64,7 @@ namespace MinecraftClient
byte r = (byte)((HexVal(hex[0]) << 4) | HexVal(hex[1]));
byte g = (byte)((HexVal(hex[2]) << 4) | HexVal(hex[3]));
byte b = (byte)((HexVal(hex[4]) << 4) | HexVal(hex[5]));
return $"§{NearestMcColor(r, g, b)}";
return ColorHelper.GetColorEscapeCode(r, g, b, foreground: true);
});
}