From b22a188d2d4ea9568b1374cd2e7200ae185f0e07 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 12 Jul 2013 12:52:53 -0400 Subject: [PATCH] Fix a possible nil bug --- oven.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oven.lua b/oven.lua index 20b2f3c1..74403c00 100644 --- a/oven.lua +++ b/oven.lua @@ -245,7 +245,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",S("Oven out of fuel")) hacky_swap_node(pos,"homedecor:oven") meta:set_string("formspec", oven_inactive_formspec)