This commit is contained in:
Brevven 2023-04-10 00:21:58 -07:00
parent f61c5ec5c2
commit 4255e2d9f8
2 changed files with 46 additions and 28 deletions

View file

@ -20,4 +20,10 @@ function util.get_list()
end
end
function util.force_enable_recipe(event, recipe_name)
if game.players[event.player_index].force.recipes[recipe_name] then
game.players[event.player_index].force.recipes[recipe_name].enabled=true
end
end
return util