mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Move object remove after position check
This commit is contained in:
parent
9b50dd6565
commit
1942384fe5
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue