diff --git a/brasier.lua b/brasier.lua index 7e5547f..af93dd4 100644 --- a/brasier.lua +++ b/brasier.lua @@ -41,6 +41,8 @@ local brasier_burn = function(pos) if timer:is_started() and node_above.name == "fire:permanent_flame" then return end local inv = minetest.get_inventory({type="node", pos=pos}) + if not inv then return end -- Stop nodetimer + local item = inv:get_stack("fuel", 1) local fuel_burned = minetest.get_craft_result({method="fuel", width=1, items={item:peek_item(1)}}).time