mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-29 22:03:42 +01:00
Interpret group value 0 as "not in group".
This fixes instances where items are counted as part of a group by craftguide but not by the engine.
This commit is contained in:
parent
97676d094e
commit
22c5c9444e
2
init.lua
2
init.lua
@ -237,7 +237,7 @@ end
|
||||
local function item_has_groups(item_groups, groups)
|
||||
for i = 1, #groups do
|
||||
local group = groups[i]
|
||||
if not item_groups[group] then
|
||||
if (item_groups[group] or 0) == 0 then
|
||||
return
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user