mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Cleaned up some bad code in DataPacket, added encode/decodeHeader and made encode/decodePayload protected
This commit is contained in:
@ -41,7 +41,7 @@ class PlayStatusPacket extends DataPacket{
|
||||
|
||||
public $status;
|
||||
|
||||
public function decodePayload(){
|
||||
protected function decodePayload(){
|
||||
$this->status = $this->getInt();
|
||||
}
|
||||
|
||||
@ -49,7 +49,7 @@ class PlayStatusPacket extends DataPacket{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function encodePayload(){
|
||||
protected function encodePayload(){
|
||||
$this->putInt($this->status);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user