ooops
This commit is contained in:
@@ -55,8 +55,10 @@ public abstract class Agent {
|
||||
}
|
||||
|
||||
public void stopAllTasks() {
|
||||
taskList.stream().filter(t -> !t.isCancelled()).forEach(BukkitRunnable::cancel);
|
||||
taskList.clear();
|
||||
if (!taskList.isEmpty()) {
|
||||
taskList.stream().filter(t -> !t.isCancelled()).forEach(BukkitRunnable::cancel);
|
||||
taskList.clear();
|
||||
}
|
||||
}
|
||||
|
||||
public void setDrops(boolean enabled) {
|
||||
|
||||
Reference in New Issue
Block a user