mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 07:09:56 +00:00
Merge branch 'php7-0.14-64ff00-01' of https://github.com/PurePlugins/PocketMine-MP
This commit is contained in:
commit
542781c2b1
@ -29,7 +29,7 @@ class CompressBatchedTask extends AsyncTask{
|
|||||||
public $level = 7;
|
public $level = 7;
|
||||||
public $data;
|
public $data;
|
||||||
public $final;
|
public $final;
|
||||||
public $targets = [];
|
public $targets;
|
||||||
|
|
||||||
public function __construct($data, array $targets, $level = 7){
|
public function __construct($data, array $targets, $level = 7){
|
||||||
$this->data = $data;
|
$this->data = $data;
|
||||||
@ -47,6 +47,6 @@ class CompressBatchedTask extends AsyncTask{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function onCompletion(Server $server){
|
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