Merge pull request #19 from kakalak-lumberJack/patch-2

nil value fix line 1835
master
Brett O'Donnell 2017-01-31 15:29:46 +10:30 committed by GitHub
commit 20520b5030
1 changed files with 2 additions and 2 deletions

View File

@ -588,7 +588,7 @@ craft_guide.on_receive_fields = function(pos, formname, fields, player)
inv:remove_item("tempinv",ItemStack(name.." "..tostring(count)))
inv:set_stack("copylist",i,ItemStack(name.." 1"))
success=true
break
break
end
end
end
@ -1832,7 +1832,7 @@ craft_guide.create_inventory = function(inv, search)
end
end
else
if craft~=nil and ((craft[1]).type~="fuel" or craft_guide.show_all_fuel_crafts) then
if craft~=nil and craft[1]~=nil and ((craft[1]).type~="fuel" or craft_guide.show_all_fuel_crafts) then
table.insert(craft_guide_list, name)
end
end