mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-26 04:23:44 +01:00
Minor fix
This commit is contained in:
parent
42e255f07f
commit
d6083e2c03
3
init.lua
3
init.lua
@ -964,6 +964,8 @@ local function get_stack_max(inv, data, is_recipe, rcp)
|
|||||||
for name in pairs(counts_rcp) do
|
for name in pairs(counts_rcp) do
|
||||||
if is_group(name) then
|
if is_group(name) then
|
||||||
local def = reg_items[item]
|
local def = reg_items[item]
|
||||||
|
|
||||||
|
if def then
|
||||||
local groups = extract_groups(name)
|
local groups = extract_groups(name)
|
||||||
|
|
||||||
if item_has_groups(def.groups, groups) then
|
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
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
counts_inv[item] = (counts_inv[item] or 0) + count
|
counts_inv[item] = (counts_inv[item] or 0) + count
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user