mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Missed one
This commit is contained in:
@ -95,7 +95,7 @@ class ServerScheduler{
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function scheduleAsyncTaskToWorker(AsyncTask $task, $worker){
|
||||
public function scheduleAsyncTaskToWorker(AsyncTask $task, int $worker){
|
||||
if($task->getTaskId() !== null){
|
||||
throw new \UnexpectedValueException("Attempt to schedule the same AsyncTask instance twice");
|
||||
}
|
||||
|
Reference in New Issue
Block a user