mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Update to use new_object instead of obj
This commit is contained in:
parent
a88951ac6a
commit
9b50dd6565
1 changed files with 2 additions and 2 deletions
|
@ -356,8 +356,8 @@ function mcl_mobs.register_conversion(old_name, new_name)
|
||||||
local new_object = minetest.add_entity(pos, new_name, staticdata)
|
local new_object = minetest.add_entity(pos, new_name, staticdata)
|
||||||
if not new_object then return end
|
if not new_object then return end
|
||||||
|
|
||||||
local hook = (obj:get_luaentity() or {})._on_after_convert
|
local hook = (new_object:get_luaentity() or {})._on_after_convert
|
||||||
if hook then hook(obj) end
|
if hook then hook(new_object) end
|
||||||
end,
|
end,
|
||||||
_convert_to = new_name,
|
_convert_to = new_name,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue