mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Updated references and submodules
This commit is contained in:
@ -32,7 +32,7 @@ class CompressBatchedTask extends AsyncTask{
|
||||
public $channel = 0;
|
||||
public $targets = [];
|
||||
|
||||
public function __construct(&$data, array $targets, $level = 7, $channel = 0){
|
||||
public function __construct($data, array $targets, $level = 7, $channel = 0){
|
||||
$this->data = $data;
|
||||
$this->targets = $targets;
|
||||
$this->level = $level;
|
||||
|
@ -248,7 +248,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
|
||||
return null;
|
||||
}
|
||||
|
||||
private function getPacket(&$buffer){
|
||||
private function getPacket($buffer){
|
||||
$pid = ord($buffer{0});
|
||||
|
||||
if(($data = $this->network->getPacket($pid)) === null){
|
||||
|
@ -57,8 +57,8 @@ abstract class DataPacket extends \stdClass{
|
||||
return $this->channel;
|
||||
}
|
||||
|
||||
public function setBuffer(&$buffer = null, $offset = 0){
|
||||
$this->buffer =& $buffer;
|
||||
public function setBuffer($buffer = null, $offset = 0){
|
||||
$this->buffer = $buffer;
|
||||
$this->offset = (int) $offset;
|
||||
}
|
||||
|
||||
@ -66,7 +66,7 @@ abstract class DataPacket extends \stdClass{
|
||||
return $this->offset;
|
||||
}
|
||||
|
||||
public function &getBuffer(){
|
||||
public function getBuffer(){
|
||||
return $this->buffer;
|
||||
}
|
||||
|
||||
@ -81,7 +81,7 @@ abstract class DataPacket extends \stdClass{
|
||||
return $len === 1 ? $this->buffer{$this->offset++} : substr($this->buffer, ($this->offset += $len) - $len, $len);
|
||||
}
|
||||
|
||||
protected function put(&$str){
|
||||
protected function put($str){
|
||||
$this->buffer .= $str;
|
||||
}
|
||||
|
||||
@ -179,7 +179,7 @@ abstract class DataPacket extends \stdClass{
|
||||
return $this->get($this->getShort());
|
||||
}
|
||||
|
||||
protected function putString(&$v){
|
||||
protected function putString($v){
|
||||
$this->putShort(strlen($v));
|
||||
$this->put($v);
|
||||
}
|
||||
|
Reference in New Issue
Block a user