forked from minetest-mods/craftguide
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)
|
local function item_has_groups(item_groups, groups)
|
||||||
for i = 1, #groups do
|
for i = 1, #groups do
|
||||||
local group = groups[i]
|
local group = groups[i]
|
||||||
if not item_groups[group] then
|
if (item_groups[group] or 0) == 0 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user