added UPDATE_RATE to config

This commit is contained in:
TheAIBot committed 2016-08-16 11:43:18 +02:00
1 parent 7beef11f08
commit 4897f019f6
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -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
+1 -1
View File
@@ -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()