1
0
Fork 0

Update to use new_object instead of obj

This commit is contained in:
teknomunk 2024-06-09 14:13:36 -05:00 committed by the-real-herowl
parent a88951ac6a
commit 9b50dd6565
1 changed files with 2 additions and 2 deletions

View File

@ -356,8 +356,8 @@ function mcl_mobs.register_conversion(old_name, new_name)
local new_object = minetest.add_entity(pos, new_name, staticdata)
if not new_object then return end
local hook = (obj:get_luaentity() or {})._on_after_convert
if hook then hook(obj) end
local hook = (new_object:get_luaentity() or {})._on_after_convert
if hook then hook(new_object) end
end,
_convert_to = new_name,
})