fix nil fuel crash

master
Vanessa Ezekowitz 2013-12-01 23:53:20 -05:00
parent f7c37ea11c
commit 109409e929
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ minetest.register_abm({
fuel = minetest.get_craft_result({method = "fuel", width = 1, items = fuellist})
end
if fuel.time <= 0 then
if fuel and fuel.time <= 0 then
meta:set_string("infotext","Smelter out of fuel")
hacky_swap_node(pos,"smelter:smelter")
meta:set_string("formspec", smelter.smelter_formspec)