mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Improved manager
This commit is contained in:
@ -58,7 +58,7 @@ abstract class DataPacket extends \stdClass{
|
||||
}
|
||||
|
||||
public function setBuffer($buffer = ""){
|
||||
$this->buffer = $buffer;
|
||||
$this->buffer =& $buffer;
|
||||
$this->offset = 0;
|
||||
}
|
||||
|
||||
@ -66,7 +66,7 @@ abstract class DataPacket extends \stdClass{
|
||||
return $this->offset;
|
||||
}
|
||||
|
||||
public function getBuffer(){
|
||||
public function &getBuffer(){
|
||||
return $this->buffer;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user