mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-20 04:33:59 +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{
|
public function onError() : void{
|
||||||
/** @var \Closure $hook */
|
/** @var \Closure|null $hook */
|
||||||
$hook = $this->fetchLocal(self::TLS_KEY_ERROR_HOOK);
|
$hook = $this->fetchLocal(self::TLS_KEY_ERROR_HOOK);
|
||||||
if($hook !== null){
|
if($hook !== null){
|
||||||
$hook();
|
$hook();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user