mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-28 13:53:00 +00:00
Fix possible crash in monster spawner code
This commit is contained in:
parent
9f5a310aae
commit
71d7ed09c8
1 changed files with 3 additions and 1 deletions
|
@ -106,8 +106,10 @@ minetest.register_node("mcl_monster_spawner:spawner", {
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
if meta:get_int("active") == 1 then
|
if meta:get_int("active") == 1 then
|
||||||
local obj = find_doll(pos)
|
local obj = find_doll(pos)
|
||||||
|
if obj then
|
||||||
obj:remove()
|
obj:remove()
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
on_right_click = function(pos, placer)
|
on_right_click = function(pos, placer)
|
||||||
|
|
Loading…
Reference in a new issue