Minor fix

This commit is contained in:
Jean-Patrick Guerrero 2020-12-30 23:48:06 +01:00
parent 829dc5f231
commit a98b7fb1d8

View File

@ -964,6 +964,8 @@ local function get_stack_max(inv, data, is_recipe, rcp)
for name in pairs(counts_rcp) do
if is_group(name) then
local def = reg_items[item]
if def then
local groups = extract_groups(name)
if item_has_groups(def.groups, groups) then
@ -971,6 +973,7 @@ local function get_stack_max(inv, data, is_recipe, rcp)
end
end
end
end
counts_inv[item] = (counts_inv[item] or 0) + count
end