mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 02:09:42 +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;
|
$this->ids = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isQueued(int $taskId) : bool{
|
public function isQueued(TaskHandler $task) : bool{
|
||||||
return isset($this->tasks[$taskId]);
|
return isset($this->tasks[$task->getTaskId()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user