mirror of
https://github.com/minetest/minetest.git
synced 2024-11-04 14:53:45 +01:00
Warn about potential infinite loop in on_construct (#12967)
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
6b6cd42ce4
commit
b89eb605b7
@ -8482,6 +8482,9 @@ Used by `minetest.register_node`.
|
|||||||
-- Node constructor; called after adding node.
|
-- Node constructor; called after adding node.
|
||||||
-- Can set up metadata and stuff like that.
|
-- Can set up metadata and stuff like that.
|
||||||
-- Not called for bulk node placement (i.e. schematics and VoxelManip).
|
-- 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
|
-- default: nil
|
||||||
|
|
||||||
on_destruct = function(pos),
|
on_destruct = function(pos),
|
||||||
|
Loading…
Reference in New Issue
Block a user