Update 'init.lua'
This commit is contained in:
parent
400c8162a1
commit
9f7001bbf5
2
init.lua
2
init.lua
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user