2021-03-24 21:14:55 +02:00
|
|
|
local Event = require 'utils.event'
|
2019-08-06 03:04:35 +02:00
|
|
|
|
2021-03-24 21:14:55 +02:00
|
|
|
local function on_player_joined_game()
|
2021-03-24 17:46:00 +02: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 17:46:00 +02:00
|
|
|
|
2021-03-24 21:14:55 +02:00
|
|
|
Event.add(defines.events.on_player_joined_game, on_player_joined_game)
|