1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-22 03:38:48 +02:00
ComfyFactorio/modules/no_blueprint_library.lua

10 lines
482 B
Lua
Raw Normal View History

2021-03-24 20:14:55 +01:00
local Event = require 'utils.event'
2019-08-06 03:04:35 +02:00
2021-03-24 20:14:55 +01:00
local function on_player_joined_game()
2021-03-24 16:46:00 +01:00
game.permissions.get_group('Default').set_allows_action(defines.input_action.grab_blueprint_record, false)
game.permissions.get_group('Default').set_allows_action(defines.input_action.import_blueprint_string, false)
game.permissions.get_group('Default').set_allows_action(defines.input_action.import_blueprint, false)
2019-08-06 03:04:35 +02:00
end
2021-03-24 16:46:00 +01:00
2021-03-24 20:14:55 +01:00
Event.add(defines.events.on_player_joined_game, on_player_joined_game)