mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 05:55:33 +00:00
Fixed possible crash in ChunkRequestTask
This commit is contained in:
parent
5913d5038b
commit
a4c7ec077b
@ -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{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user