Skip to content

Commit b57cd42

Browse files
committed
#329 use block API
1 parent 723f3d2 commit b57cd42

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Diff for: script/brave/brave.lua

+1-6
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,7 @@ end
4343
function m.start()
4444
m.push('mem', collectgarbage 'count')
4545
while true do
46-
local suc, name, id, params = m.taskpad:pop()
47-
if not suc then
48-
-- 找不到工作的勇者,只好睡觉
49-
thread.sleep(0.01)
50-
goto CONTINUE
51-
end
46+
local name, id, params = m.taskpad:bpop()
5247
local ability = m.ability[name]
5348
-- TODO
5449
if not ability then

0 commit comments

Comments
 (0)