]> git.lizzy.rs Git - dragonblocks3d-lua.git/blobdiff - src/taskmgr.lua
Huge Performance improvements
[dragonblocks3d-lua.git] / src / taskmgr.lua
index 77927182700ea08ef3d4298eaf43bf99efe18c99..4c4693e6d3ba50920c4379c4224c4dad80622c80 100644 (file)
@@ -11,7 +11,11 @@ function Dragonblocks:step()
        local tasks = self.tasks
        self.tasks = {}
        for _, t in ipairs(tasks) do
-               if coroutine.resume(t) then
+               local continue, status = coroutine.resume(t)
+               if status then
+                       print(status)
+               end
+               if continue then
                        table.insert(self.tasks, t)
                end
        end