geforkt von Mirrors/Paper
Fix active async tasks not cancelled by CraftScheduler#cancelTasks(Plugin)
Dieser Commit ist enthalten in:
Ursprung
94b0980852
Commit
ee91bce157
@ -226,7 +226,7 @@ public class CraftScheduler implements BukkitScheduler {
|
|||||||
handle(task, 0l);
|
handle(task, 0l);
|
||||||
for (CraftTask taskPending = head.getNext(); taskPending != null; taskPending = taskPending.getNext()) {
|
for (CraftTask taskPending = head.getNext(); taskPending != null; taskPending = taskPending.getNext()) {
|
||||||
if (taskPending == task) {
|
if (taskPending == task) {
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
if (taskPending.getTaskId() != -1 && taskPending.getOwner().equals(plugin)) {
|
if (taskPending.getTaskId() != -1 && taskPending.getOwner().equals(plugin)) {
|
||||||
taskPending.cancel0();
|
taskPending.cancel0();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren