mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 00:39:45 +00:00
TaskHandler: change isQueued() to accept TaskHandler instead of int
This commit is contained in:
parent
a71b111b50
commit
dca4bf424e
@ -83,8 +83,8 @@ class TaskScheduler{
|
||||
$this->ids = 1;
|
||||
}
|
||||
|
||||
public function isQueued(int $taskId) : bool{
|
||||
return isset($this->tasks[$taskId]);
|
||||
public function isQueued(TaskHandler $task) : bool{
|
||||
return isset($this->tasks[$task->getTaskId()]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user