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

Fix Minetest blaming the wrong mod for errors #12241

Merged
merged 9 commits into from
May 9, 2022

Conversation

appgurueu
Copy link
Contributor

@appgurueu appgurueu commented Apr 28, 2022

Presumably fixes #12236 for the case that mods insert their callbacks manually into minetest.registered_<callbacks> (often to achieve a particular order of execution). This is the case with mesecons and used to be the case with modlib.

builtin/game/item.lua Outdated Show resolved Hide resolved
@sfan5 sfan5 added the Bugfix 🐛 PRs that fix a bug label Apr 28, 2022
@sfan5
Copy link
Member

sfan5 commented Apr 28, 2022

This is the case with mesecons

Can you link the code where it does this?

@appgurueu
Copy link
Contributor Author

appgurueu commented Apr 28, 2022

This is the case with mesecons

Can you link the code where it does this?

Sure. Here it is.

builtin/game/register.lua Outdated Show resolved Hide resolved
Copy link
Member

@sfan5 sfan5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SmallJoker SmallJoker merged commit 089797d into minetest:master May 9, 2022
@appgurueu appgurueu deleted the fix-mod-origin branch May 10, 2022 13:10
sfan5 pushed a commit that referenced this pull request May 12, 2022
Covers the case where mods insert their callbacks manually into "minetest.registered_<callbacks>" (often to achieve a particular order of execution).
sfan5 pushed a commit that referenced this pull request May 12, 2022
Covers the case where mods insert their callbacks manually into "minetest.registered_<callbacks>" (often to achieve a particular order of execution).
sfan5 pushed a commit that referenced this pull request May 14, 2022
Covers the case where mods insert their callbacks manually into "minetest.registered_<callbacks>" (often to achieve a particular order of execution).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stacktraces reported by Minetest blame the wrong mod
4 participants