diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-03 18:17:26 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-03 18:17:26 +0800 |
commit | b57cd42bbd0fd2508ab06ba4adf17d1c2de1eff9 (patch) | |
tree | 824a45997bce5e6518346d9b02a881df1ea07e1e /script | |
parent | 723f3d218e51e2556cfb754db901406a0f9c5164 (diff) | |
download | lua-language-server-b57cd42bbd0fd2508ab06ba4adf17d1c2de1eff9.zip |
#329 use block API
Diffstat (limited to 'script')
-rw-r--r-- | script/brave/brave.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/script/brave/brave.lua b/script/brave/brave.lua index c497c093..44176337 100644 --- a/script/brave/brave.lua +++ b/script/brave/brave.lua @@ -43,12 +43,7 @@ end function m.start() m.push('mem', collectgarbage 'count') while true do - local suc, name, id, params = m.taskpad:pop() - if not suc then - -- 找不到工作的勇者,只好睡觉 - thread.sleep(0.01) - goto CONTINUE - end + local name, id, params = m.taskpad:bpop() local ability = m.ability[name] -- TODO if not ability then |