-
Notifications
You must be signed in to change notification settings - Fork 52
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
Better error checking for link and unlink commands. #202
base: main
Are you sure you want to change the base?
Conversation
@benwoo1110 does this build? Just wondering because |
6828e07
to
b3d1169
Compare
Yep it compiles locally for me, just rebased it with main branch as well, so there is Travis. |
Awesome, gonna review soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Seems "soon" took me a while lol.
Just realised |
Yeah I noticed too, but I kind of doubt anyone is using it... I suppose it would be better not to break the API though. edit: actually I don't think that's breaking, going from |
From what I know, there isnt a way to overload return values ;(. We can have a 4.3 release 😄 |
@nicegamer7 now a new |
saveMVNPConfig()
result should be used to ensure removing and adding of world link is saved to config properly.Also, unlink command shouldn't need to check for MVWorld bcu users should be able to unlink world that they already have deleted/unloaded.
While doing this, also found a bug where it throws NPE (https://bytebin.lucko.me/1sI4jrxziC) if unlinking a toWorld that is not MVWorld which is fixed in this pr.