Warn about potential infinite loop in on_construct (#12967)

Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
Jude Melton-Houghton 2022-11-16 13:11:36 -05:00 committed by GitHub
parent 6b6cd42ce4
commit b89eb605b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8482,6 +8482,9 @@ Used by `minetest.register_node`.
-- Node constructor; called after adding node.
-- Can set up metadata and stuff like that.
-- Not called for bulk node placement (i.e. schematics and VoxelManip).
-- Note: Within an on_construct callback, minetest.set_node can cause an
-- infinite loop if it invokes the same callback.
-- Consider using minetest.swap_node instead.
-- default: nil
on_destruct = function(pos),