mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -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
|
#endregion
|
||||||
|
|
||||||
internal static string GetSupportedCol(Player dst, string col) {
|
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))
|
if (col.Length >= 2 && !Colors.IsStandardColor(col[1]) && !dst.HasCpeExt(CpeExt.TextColors))
|
||||||
col = "&" + Colors.GetFallback(col[1]);
|
col = "&" + Colors.GetFallback(col[1]);
|
||||||
return col;
|
return col;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user