mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
Fix GetSupportedCol erroring when col is null.
This commit is contained in:
parent
2312236fe2
commit
87d8b9f6a1
@ -156,6 +156,7 @@ namespace MCGalaxy {
|
||||
#endregion
|
||||
|
||||
internal static string GetSupportedCol(Player dst, string col) {
|
||||
if (col == null) return null;
|
||||
if (col.Length >= 2 && !Colors.IsStandardColor(col[1]) && !dst.HasCpeExt(CpeExt.TextColors))
|
||||
col = "&" + Colors.GetFallback(col[1]);
|
||||
return col;
|
||||
|
Loading…
x
Reference in New Issue
Block a user