1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2024-12-30 23:17:53 +02:00

minor tweak

This commit is contained in:
Gerkiz 2020-10-02 08:43:28 +02:00
parent f79c15560d
commit 9790e124d9
2 changed files with 3 additions and 2 deletions

View File

@ -764,7 +764,7 @@ local on_tick = function()
local update_gui = Gui_mf.update_gui
local tick = game.tick
if tick % 60 == 0 then
if tick % 40 == 0 then
for _, player in pairs(game.connected_players) do
update_gui(player)
end
@ -855,7 +855,7 @@ local on_init = function()
Explosives.set_whitelist_entity('character')
end
Event.on_nth_tick(25, on_tick)
Event.on_nth_tick(10, on_tick)
Event.on_init(on_init)
Event.add(defines.events.on_player_joined_game, on_player_joined_game)
Event.add(defines.events.on_player_left_game, on_player_left_game)

View File

@ -108,6 +108,7 @@ local get_gulag_permission_group = function()
gulag.set_allows_action(defines.input_action.drop_item, false)
gulag.set_allows_action(defines.input_action.place_equipment, false)
gulag.set_allows_action(defines.input_action.take_equipment, false)
gulag.set_allows_action(defines.input_action.open_technology_gui, false)
end
local gulag = game.permissions.get_group('gulag')
return gulag