Return after removing wielditem entity
This commit is contained in:
parent
3e518ee42d
commit
ef2adaff66
@ -36,6 +36,7 @@ minetest.register_entity(
|
|||||||
-- Remove orphan wielditem
|
-- Remove orphan wielditem
|
||||||
minetest.log("info", "[wielditem] Attempted to spawn orphan wielditem entity!")
|
minetest.log("info", "[wielditem] Attempted to spawn orphan wielditem entity!")
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
|
return
|
||||||
end
|
end
|
||||||
self.object:set_armor_groups({immortal=1})
|
self.object:set_armor_groups({immortal=1})
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user