mirror of
https://github.com/minetest-mods/i3.git
synced 2025-01-13 11:40:31 +01:00
Minor fix
This commit is contained in:
parent
829dc5f231
commit
a98b7fb1d8
9
init.lua
9
init.lua
@ -964,10 +964,13 @@ 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]
|
||||
local groups = extract_groups(name)
|
||||
|
||||
if item_has_groups(def.groups, groups) then
|
||||
counts_inv[name] = (counts_inv[name] or 0) + count
|
||||
if def then
|
||||
local groups = extract_groups(name)
|
||||
|
||||
if item_has_groups(def.groups, groups) then
|
||||
counts_inv[name] = (counts_inv[name] or 0) + count
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user