Stop the schedule from running all the time
This commit is contained in:
parent
7dc54ed555
commit
d54f914d7a
|
@ -49,7 +49,6 @@ function minetest.async.schedule_worker()
|
|||
return true
|
||||
end
|
||||
minetest.async.state = "suspended"
|
||||
minetest.after(minetest.async.resting,minetest.async.schedule_worker)
|
||||
return false
|
||||
end
|
||||
|
||||
|
@ -58,7 +57,6 @@ function minetest.async.schedule_globalstep_worker()
|
|||
minetest.after(0,minetest.async.run_globalstep_worker,index)
|
||||
return true
|
||||
end
|
||||
minetest.after(0.05,minetest.async.schedule_globalstep_worker)
|
||||
return false
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user