parsing to int

This commit is contained in:
Miodec 2022-02-21 14:06:54 +01:00
parent 86d7207c39
commit 9996d90e42

View file

@ -1695,6 +1695,9 @@ export function setCustomBackgroundFilter(
array: MonkeyTypes.CustomBackgroundFilter,
nosave?: boolean
): void {
array = (array as unknown as string[]).map((value) =>
parseInt(value)
) as MonkeyTypes.CustomBackgroundFilter;
if (!isConfigValueValid(array, ["numberArray"]))
return invalid("custom background filter", array);