mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 03:06:55 +00:00
Fixed possible crash in ChunkRequestTask
This commit is contained in:
@ -61,7 +61,9 @@ class ChunkRequestTask extends AsyncTask{
|
|||||||
|
|
||||||
public function onError() : void{
|
public function onError() : void{
|
||||||
$hook = $this->fetchLocal()["errorHook"];
|
$hook = $this->fetchLocal()["errorHook"];
|
||||||
$hook();
|
if($hook !== null){
|
||||||
|
$hook();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onCompletion() : void{
|
public function onCompletion() : void{
|
||||||
|
Reference in New Issue
Block a user