Update 'init.lua'

This commit is contained in:
Genshin 2021-05-16 07:25:10 +00:00
parent 400c8162a1
commit 9f7001bbf5

View File

@ -148,7 +148,7 @@ function minetest.register_on_removeentity(func)
table.insert(minetest.registered_removeentity_events, func)
end
--Register on remove entity (Called after metadata method objectref:remove() gets called)
--Register on remove entity (Called when builtin core.clear_objects() gets called)
function minetest.register_on_clearobjects(func)
assert(type(func) == "function", "you must include a function with the following arguement (option).")
table.insert(minetest.registered_clear_objects_events, func)