celeste mono workaround

This commit is contained in:
yosh 2023-05-21 23:00:30 -05:00
parent ae23c9d901
commit 4b0fe0e291
1 changed files with 1 additions and 1 deletions

View File

@ -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.");
}