修复任务暂停导致未执行的上一个任务丢失的问题

This commit is contained in:
zhangyuheng 2024-02-28 15:37:47 +08:00
parent c384508ffa
commit 9f86548dd4
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<groupId>site.deercloud</groupId>
<artifactId>LiteWorldEdit</artifactId>
<version>2.3.5.0</version>
<version>2.3.5.1</version>
<packaging>jar</packaging>
<name>LiteWorldEdit</name>

View File

@ -48,6 +48,7 @@ public class Task implements Runnable {
}
} else {
Notification.titleError(player, "错误 任务已自动暂停", re.getMessage());
this.xPlayer.addJob(job); // 任务暂停 将没有执行的任务重新加入队列
this.xPlayer.pauseJob();
return;
}