cache: Fix recipes with groups splitted to dimension in filter

This commit is contained in:
Alexander Weber 2017-03-18 22:45:23 +01:00
parent 3deacee18e
commit e455737352

View File

@ -111,7 +111,12 @@ function crecipes.new(recipe)
if cache.cgroups["group:"..groupname] then
retitems = table.copy(cache.cgroups["group:"..groupname].items)
else
minetest.log("[smartfs_inventory] unknown group description in recipe: "..recipe_item.." / "..groupname)
groupname = groupname:gsub("_", ":")
if cache.cgroups["group:"..groupname] then
retitems = table.copy(cache.cgroups["group:"..groupname].items)
else
minetest.log("[smartfs_inventory] unknown group description in recipe: "..recipe_item.." / "..groupname)
end
end
else
for itemname, itemdef in pairs(retitems) do