mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 03:06:55 +00:00
Cleaned up some bad code in DataPacket, added encode/decodeHeader and made encode/decodePayload protected
This commit is contained in:
@ -50,7 +50,7 @@ class ClientboundMapItemDataPacket extends DataPacket{
|
||||
/** @var Color[][] */
|
||||
public $colors = [];
|
||||
|
||||
public function decodePayload(){
|
||||
protected function decodePayload(){
|
||||
$this->mapId = $this->getEntityUniqueId();
|
||||
$this->type = $this->getUnsignedVarInt();
|
||||
|
||||
@ -93,7 +93,7 @@ class ClientboundMapItemDataPacket extends DataPacket{
|
||||
}
|
||||
}
|
||||
|
||||
public function encodePayload(){
|
||||
protected function encodePayload(){
|
||||
$this->putEntityUniqueId($this->mapId);
|
||||
|
||||
$type = 0;
|
||||
|
Reference in New Issue
Block a user