Skip to content

Commit

Permalink
Fix crash with nil fuel
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowNinja committed Jan 11, 2014
1 parent 1a9362a commit d09d8f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/default/nodes.lua
Expand Up @@ -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)
Expand Down

0 comments on commit d09d8f0

Please sign in to comment.