This commit is contained in:
Brevven 2023-05-15 22:08:49 -07:00
parent 7c766d2ab4
commit a1527c9924
3 changed files with 171 additions and 24 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