mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Cleaned up some bad code in DataPacket, added encode/decodeHeader and made encode/decodePayload protected
This commit is contained in:
@ -32,11 +32,11 @@ class ShowStoreOfferPacket extends DataPacket{
|
||||
|
||||
public $offerId;
|
||||
|
||||
public function decodePayload(){
|
||||
protected function decodePayload(){
|
||||
$this->offerId = $this->getString();
|
||||
}
|
||||
|
||||
public function encodePayload(){
|
||||
protected function encodePayload(){
|
||||
$this->putString($this->offerId);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user