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