Merge pull request #6 from TheAIBot/master

added UPDATE_RATE to config
This commit is contained in:
Daniel authored and GitHub committed 2016-08-16 11:54:10 +02:00
commit 74253908d5
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()