se compat

This commit is contained in:
Brevven 2023-03-23 03:12:03 -07:00
parent 3e5c07c86a
commit e41a8efa0c
3 changed files with 9 additions and 2 deletions

View file

@ -1008,7 +1008,7 @@ end
-- Set recipe subgroup
function util.set_subgroup(recipe_name, subgroup, options)
if not should_force(options) and bypass(recipe_name) then return end
if data.raw.recipe[recipe_name] then
if data.raw.recipe[recipe_name] and data.raw["item-subgroup"][subgroup] then
me.add_modified(recipe_name)
data.raw.recipe[recipe_name].subgroup = subgroup
end