This commit is contained in:
Brevven 2023-04-16 03:22:44 -07:00
parent fd2071b4bb
commit d7b2ede0c6
2 changed files with 27 additions and 3 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