mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Cleaned up some bad code in DataPacket, added encode/decodeHeader and made encode/decodePayload protected
This commit is contained in:
@ -33,12 +33,12 @@ class AvailableCommandsPacket extends DataPacket{
|
||||
public $commands; //JSON-encoded command data
|
||||
public $unknown = "";
|
||||
|
||||
public function decodePayload(){
|
||||
protected function decodePayload(){
|
||||
$this->commands = $this->getString();
|
||||
$this->unknown = $this->getString();
|
||||
}
|
||||
|
||||
public function encodePayload(){
|
||||
protected function encodePayload(){
|
||||
$this->putString($this->commands);
|
||||
$this->putString($this->unknown);
|
||||
}
|
||||
|
Reference in New Issue
Block a user