From 3cfb3539ed82f035e1eb680ce814f71ef45cff77 Mon Sep 17 00:00:00 2001 From: Apelta <54854228+TSafa-23@users.noreply.github.com> Date: Mon, 4 Jan 2021 10:54:07 -0600 Subject: [PATCH] Fix furnace crash (#730) Adds check to prevent crash, temporary fix for maps which include furnaces --- mods/mtg/furnace/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/mtg/furnace/init.lua b/mods/mtg/furnace/init.lua index 811e7c6..154add6 100644 --- a/mods/mtg/furnace/init.lua +++ b/mods/mtg/furnace/init.lua @@ -236,6 +236,7 @@ local furnaces = {} local function on_destruct(pos) local inv = minetest.get_inventory({ type = "node", pos = pos }) + if not inv then return end for _, list in pairs(inv:get_lists()) do for _, item in pairs(list) do minetest.add_item(pos, item)