From d09d8f02a4e2fdb7f315d3231ce721efae6e6902 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Sat, 11 Jan 2014 11:27:21 -0500 Subject: [PATCH] Fix crash with nil fuel --- mods/default/nodes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 34b873e5..cc0f1ac8 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -1042,7 +1042,7 @@ minetest.register_abm({ fuel, afterfuel = minetest.get_craft_result({method = "fuel", width = 1, items = fuellist}) end - if fuel.time <= 0 then + if not fuel or fuel.time <= 0 then meta:set_string("infotext","Furnace out of fuel") swap_node(pos,"default:furnace") meta:set_string("formspec", default.furnace_inactive_formspec) -- 2.25.1