cache: Fix recipes with groups splitted to dimension in filter, the second fix (bug nocitces for dyes)

This commit is contained in:
Alexander Weber 2017-03-19 12:32:12 +01:00
parent b6a6531a83
commit 5fd04ba148

View File

@ -122,7 +122,9 @@ function crecipes.new(recipe)
for itemname, itemdef in pairs(retitems) do
local item_in_group = false
for _, item_group in pairs(cache.citems[itemname].cgroups) do
if item_group.name == "group:"..groupname then
if item_group.name == "group:"..groupname or
item_group.name == "group:"..groupname:gsub("_", ":")
then
item_in_group = true
break
end