From f8e1ff6c4f17ddc536886926244054a31d4fb2c3 Mon Sep 17 00:00:00 2001 From: osmarks Date: Tue, 14 Aug 2018 22:13:42 +0100 Subject: [PATCH] Make IO thing sleep properly --- IO.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/IO.lua b/IO.lua index 4abab80..644834c 100644 --- a/IO.lua +++ b/IO.lua @@ -3,8 +3,10 @@ local w = require "lib" local conf = w.load_config({ "chest", - "items" + "items", + "sleep_time" }, { + sleep_time = 1 items = {} }) @@ -35,4 +37,6 @@ while true do }) end end + + sleep(conf.sleep_time) end \ No newline at end of file