From 22c5c9444e75144437bd8a09eec652f1008d03ed Mon Sep 17 00:00:00 2001 From: Beha Date: Sun, 4 Aug 2019 13:09:47 -0400 Subject: [PATCH] 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. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 80b129f..bb75208 100644 --- a/init.lua +++ b/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