修复机器人更新协程结束后不会让机器人进入自杀模式

This commit is contained in:
MrZ626
2021-08-26 15:46:50 +08:00
parent a7f7374f96
commit 15d43f6313

View File

@@ -16,7 +16,9 @@ function baseBot.update(bot)
bot.delay=bot.delay-1
if not keys[1]then
if bot.runningThread then
pcall(bot.runningThread)
if not pcall(bot.runningThread)then
bot.runningThread=false
end
else
P:act_hardDrop()
end