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
Fix alias handling of get_content_id #9712
Conversation
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.
Works as expected.
Thanks for fixing that! |
Why would using |
@HeyITGuyFixIt The PR that introduced that change to My cloudlands mod was also using it to check for whether nodes exist, so I had to update the lines to this: Obviously I had found the old behaviour useful, but I must admit that if you ignore the alias handling bug it uncovered (i.e. what this PR fixes) very few mods seem to have been [incorrectly] broken by the new |
...also some miscellaneous cleanups in itemdef.cpp
fixes #9632
To do
This PR is a Ready for Review.
How to test
Put the following code in the top level of a mod, not inside a callback or chatcommand.
Test that the following code succeeds:
Test that the following code throws an error: