mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
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:
commit
72200fc1ef
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue