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

Use get_all_craft_recipes #20

Open
numberZero opened this issue May 12, 2017 · 4 comments
Open

Use get_all_craft_recipes #20

numberZero opened this issue May 12, 2017 · 4 comments

Comments

@numberZero
Copy link

Use minetest.get_all_craft_recipes to process recipes already registered to (mostly) remove the need of depending on this mod.

@numberZero
Copy link
Author

Note that you may also use the minetest.after(0 trick, as unified_inventory does, to process recipes when they are all registered, as well as all aliases.

@AntumDeluge
Copy link

Does minetest.after wait to process until the server is fully loaded?

@numberZero
Copy link
Author

Yes. The functions queued with minetest.after are executed somewhere in the server main loop, but it is started only when all mods are initialized.

@AntumDeluge
Copy link

Nice! I'll have to use that. Thank you.

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