mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 15:19:56 +00:00
Resolve CompressBatchedTask-related crashes
This commit is contained in:
parent
1082e32fd7
commit
074d7ed95c
@ -29,7 +29,7 @@ class CompressBatchedTask extends AsyncTask{
|
||||
public $level = 7;
|
||||
public $data;
|
||||
public $final;
|
||||
public $targets = [];
|
||||
public $targets;
|
||||
|
||||
public function __construct($data, array $targets, $level = 7){
|
||||
$this->data = $data;
|
||||
@ -47,6 +47,6 @@ class CompressBatchedTask extends AsyncTask{
|
||||
}
|
||||
|
||||
public function onCompletion(Server $server){
|
||||
$server->broadcastPacketsCallback($this->final, $this->targets);
|
||||
$server->broadcastPacketsCallback($this->final, (array) $this->targets);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user