整理代码

This commit is contained in:
MrZ626
2021-05-13 10:18:02 +08:00
parent e56391c347
commit 0f30a35ae3
5 changed files with 29 additions and 28 deletions

View File

@@ -125,11 +125,11 @@ function Player:newTask(code,...)
local thread=coroutine.create(code)
resume(thread,self,...)
if status(thread)~='dead'then
self.tasks[#self.tasks+1]={
ins(self.tasks,{
thread=thread,
code=code,
args={...},
}
})
end
end