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:
Beha 2019-08-04 13:09:47 -04:00 committed by Jean-Patrick Guerrero
parent 97676d094e
commit 22c5c9444e
1 changed files with 1 additions and 1 deletions

View File

@ -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