mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Implemented Channeled packet sending
This commit is contained in:
@ -29,6 +29,7 @@ class CompressBatchedTask extends AsyncTask{
|
||||
public $level = 7;
|
||||
public $data;
|
||||
public $final;
|
||||
public $channel = 0;
|
||||
public $targets = [];
|
||||
|
||||
public function onRun(){
|
||||
@ -40,6 +41,6 @@ class CompressBatchedTask extends AsyncTask{
|
||||
}
|
||||
|
||||
public function onCompletion(Server $server){
|
||||
$server->broadcastPacketsCallback($this->final, $this->targets);
|
||||
$server->broadcastPacketsCallback($this->final, $this->targets, $this->channel);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user