0
0
Fork 0

Move object remove after position check

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

View File

@ -349,9 +349,8 @@ function mcl_mobs.register_conversion(old_name, new_name)
if not old_object then return end
local pos = old_object:get_pos()
old_object:remove() -- Always remove the object if we got this far
if not pos then return end
old_object:remove()
local new_object = minetest.add_entity(pos, new_name, staticdata)
if not new_object then return end