mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-08 06:37:04 -04:00
Fix /ccols edit not working with non-ascii colour codes (Thanks Desaxu)
This commit is contained in:
parent
c22cd55997
commit
024f7d4e91
@ -166,8 +166,9 @@ namespace MCGalaxy.Gui.Components {
|
||||
if (c == 'S' || c == 'f' || c == 'F' || c == '0') return foreCol;
|
||||
Colors.Map(ref c);
|
||||
|
||||
if (!Colors.IsDefined(c)) return foreCol;
|
||||
ColorDesc col = Colors.Get(c);
|
||||
if (col.Undefined) return foreCol;
|
||||
|
||||
return Color.FromArgb(col.R, col.G, col.B);
|
||||
}
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ namespace MCGalaxy.Commands.CPE {
|
||||
|
||||
char code = ParseColor(p, args[1]);
|
||||
if (code == '\0') return;
|
||||
ColorDesc col = Colors.List[code];
|
||||
ColorDesc col = Colors.Get(code);
|
||||
|
||||
if (args[2].CaselessEq("name")) {
|
||||
if (!CheckName(p, args[3])) return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user