Make IO thing sleep properly

This commit is contained in:
osmarks 2018-08-14 22:13:42 +01:00
parent 1bfec07316
commit f8e1ff6c4f

6
IO.lua
View File

@ -3,8 +3,10 @@ local w = require "lib"
local conf = w.load_config({ local conf = w.load_config({
"chest", "chest",
"items" "items",
"sleep_time"
}, { }, {
sleep_time = 1
items = {} items = {}
}) })
@ -35,4 +37,6 @@ while true do
}) })
end end
end end
sleep(conf.sleep_time)
end end