Fix GetSupportedCol erroring when col is null.

This commit is contained in:
UnknownShadow200 2016-05-23 11:54:33 +10:00
parent 2312236fe2
commit 87d8b9f6a1

View File

@ -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;