mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 15:04:52 +09:00
added UPDATE_RATE to config
This commit is contained in:
1 parent
7beef11f08
commit
4897f019f6
2 files changed
+5
-3
No files matched your search
@@ -19,6 +19,8 @@ OUTPUT_TANK_PICTURE_PATH = nil
|
||||
OUTPUT_TANK_ICON_PATH = nil
|
||||
|
||||
|
||||
|
||||
OUTPUT_FILE = "output.txt"
|
||||
ORDER_FILE = "orders.txt"
|
||||
ORDER_FILE = "orders.txt"
|
||||
|
||||
|
||||
UPATE_RATE = 60
|
||||
@@ -76,7 +76,7 @@ script.on_event(defines.events.on_tick, function(event)
|
||||
global.outputList = global.outputList or {}
|
||||
global.inputList = global.inputList or {}
|
||||
|
||||
local todo = game.tick % 6
|
||||
local todo = game.tick % UPATE_RATE
|
||||
|
||||
if todo == 0 then
|
||||
HandleInputChests()
|
||||
|
||||
Reference in new issue
Block a user