Fix active async tasks not cancelled by CraftScheduler#cancelTasks(Plugin)

This commit is contained in:
blablubbabc authored and md_5 committed 2017-09-28 16:18:45 +10:00
1 parent 94b0980852
commit ee91bce157
1 file changed
+1 -1
@@ -226,7 +226,7 @@ public class CraftScheduler implements BukkitScheduler {
handle(task, 0l);
for (CraftTask taskPending = head.getNext(); taskPending != null; taskPending = taskPending.getNext()) {
if (taskPending == task) {
return;
break;
}
if (taskPending.getTaskId() != -1 && taskPending.getOwner().equals(plugin)) {
taskPending.cancel0();