mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2026-01-31 10:25:23 -06:00
Modify GUI tick rate to 10s from 1s and refactor some of the stations code with improvements from inventory
This commit is contained in:
@@ -903,7 +903,7 @@ local function main()
|
||||
end
|
||||
|
||||
|
||||
local MANAGER_ENABLED = true
|
||||
local MANAGER_ENABLED = true --convert to mod setting?
|
||||
|
||||
script.on_init(function()
|
||||
local setting = settings.global["cybersyn-invert-sign"]
|
||||
@@ -933,7 +933,7 @@ local function main()
|
||||
script.on_event(defines.events.on_player_removed, manager.on_player_removed)
|
||||
script.on_event(defines.events.on_player_created, manager.on_player_created)
|
||||
script.on_event(defines.events.on_lua_shortcut, manager.on_lua_shortcut)
|
||||
script.on_nth_tick(60, function()
|
||||
script.on_nth_tick(600, function() --TODO: tick value needs to be converted to mod setting
|
||||
manager.tick(global)
|
||||
end)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user