Skip to content
Permalink
Browse files

Fix crash with nil fuel

  • Loading branch information
ShadowNinja committed Jan 11, 2014
1 parent 1a9362a commit d09d8f02a4e2fdb7f315d3231ce721efae6e6902
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)

0 comments on commit d09d8f0

Please sign in to comment.