From 71d7ed09c873f24115e21b21351a20a3d8237375 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 25 May 2017 04:22:18 +0200 Subject: [PATCH] Fix possible crash in monster spawner code --- mods/ITEMS/mcl_monster_spawner/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_monster_spawner/init.lua b/mods/ITEMS/mcl_monster_spawner/init.lua index 6d19ace3..e9b938f1 100644 --- a/mods/ITEMS/mcl_monster_spawner/init.lua +++ b/mods/ITEMS/mcl_monster_spawner/init.lua @@ -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,