1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-10 00:43:27 +02:00
ComfyFactorio/modules/no_blueprint_library.lua

10 lines
482 B
Lua
Raw Normal View History

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)