Fix crash in crafting

This commit is contained in:
Wuzzy 2019-08-30 01:42:24 +02:00
parent 2216afef92
commit ceac579c3a

View File

@ -86,6 +86,10 @@ function crafting.get_crafts(player_inventory)
local group = string.sub(name, 7)
local gcount = craftdef.items[c]:get_count()
local items_in = player_inventory:get_list("craft_in")
if items_in == nil then
contains_all = false
break
end
local count = 0
for i=1, #items_in do
if minetest.get_item_group(items_in[i]:get_name(), group) ~= 0 then