mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-19 20:24:29 +00:00
ChunkRequestTask: fix @var for error hook fetch
This commit is contained in:
parent
a604176ac2
commit
68bea6d4aa
@ -68,7 +68,7 @@ class ChunkRequestTask extends AsyncTask{
|
||||
}
|
||||
|
||||
public function onError() : void{
|
||||
/** @var \Closure $hook */
|
||||
/** @var \Closure|null $hook */
|
||||
$hook = $this->fetchLocal(self::TLS_KEY_ERROR_HOOK);
|
||||
if($hook !== null){
|
||||
$hook();
|
||||
|
Loading…
x
Reference in New Issue
Block a user