celeste mono workaround
This commit is contained in:
parent
ae23c9d901
commit
4b0fe0e291
|
@ -54,7 +54,7 @@ namespace Celeste.Mod.AvaliSkin {
|
|||
}
|
||||
|
||||
public static Color HexToColor(this string hex) {
|
||||
hex = hex.TrimStart('#');
|
||||
hex = hex.TrimStart(' ', '#');
|
||||
if (hex.Length < 6) {
|
||||
throw new IndexOutOfRangeException("Hex colors must contain at least 6 characters.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue