From e0896d6c2414ee73e31673c5420c6056e2efc323 Mon Sep 17 00:00:00 2001 From: Coder12a <38924418+Coder12a@users.noreply.github.com> Date: Fri, 9 Nov 2018 00:22:29 -0600 Subject: [PATCH] Fix priority --- async.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/async.lua b/async.lua index a35bb64..30bad4e 100644 --- a/async.lua +++ b/async.lua @@ -2,8 +2,8 @@ minetest.async = {} minetest.async.threads = {} minetest.async.globalstep_threads = {} -minetest.async.resting = 200 / 1000 -minetest.async.maxtime = 200 / 1000 +minetest.async.resting = 200 +minetest.async.maxtime = 200 minetest.async.state = "suspended" function minetest.async.create_worker(func) @@ -63,8 +63,8 @@ function minetest.async.schedule_globalstep_worker() end function minetest.async.priority(resting,maxtime) - minetest.async.resting = resting / 1000 - minetest.async.maxtime = maxtime / 1000 + minetest.async.resting = resting + minetest.async.maxtime = maxtime end function minetest.async.iterate(from,to,func,callback)