using parse float instead (im stupid)

This commit is contained in:
Miodec 2022-02-21 14:13:16 +01:00
parent 9996d90e42
commit 88a35c3d7c

View file

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