mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-05 07:13:51 +01:00
Fix possible crash in monster spawner code
This commit is contained in:
parent
9f5a310aae
commit
71d7ed09c8
@ -106,7 +106,9 @@ minetest.register_node("mcl_monster_spawner:spawner", {
|
||||
local meta = minetest.get_meta(pos)
|
||||
if meta:get_int("active") == 1 then
|
||||
local obj = find_doll(pos)
|
||||
obj:remove()
|
||||
if obj then
|
||||
obj:remove()
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user