Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setSettings() bug #5

Closed
web-dev-sam opened this issue Mar 17, 2022 · 1 comment
Closed

setSettings() bug #5

web-dev-sam opened this issue Mar 17, 2022 · 1 comment

Comments

@web-dev-sam
Copy link
Contributor

I get this error when trying to use .setSetting() without having "_settings" or "_customData" properties in my Info.dat.

if (!(steps[i] in currentObj)) {
                      ^
TypeError: Cannot use 'in' operator to search for '_playerOptions' in undefined
    at jsonSet (ReMapper\src\general.ts:372:23)
    at Difficulty.updateSets (ReMapper\src\beatmap.ts:193:16)
    at Difficulty.setSetting (ReMapper\src\beatmap.ts:157:14)
@Swifter1243
Copy link
Owner

thanks, I've fixed this but haven't pushed an update on NPM since there's not enough to do that yet. For now just add the settings param manually and everything should be good on the next update :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants