Fix crash with nil fuel

This commit is contained in:
ShadowNinja 2014-01-11 11:27:21 -05:00
parent 1a9362afed
commit d09d8f02a4

View File

@ -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)