mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 09:39:56 +00:00
Merge branch 'release/alpha12'
This commit is contained in:
commit
c9ed517063
@ -31,19 +31,19 @@ class UpdateBlockSyncedPacket extends UpdateBlockPacket{
|
|||||||
public const NETWORK_ID = ProtocolInfo::UPDATE_BLOCK_SYNCED_PACKET;
|
public const NETWORK_ID = ProtocolInfo::UPDATE_BLOCK_SYNCED_PACKET;
|
||||||
|
|
||||||
/** @var int */
|
/** @var int */
|
||||||
protected $uvarint64_1 = 0;
|
public $entityUniqueId = 0;
|
||||||
/** @var int */
|
/** @var int */
|
||||||
protected $uvarint64_2 = 0;
|
public $uvarint64_2 = 0;
|
||||||
|
|
||||||
protected function decodePayload(){
|
protected function decodePayload(){
|
||||||
parent::decodePayload();
|
parent::decodePayload();
|
||||||
$this->uvarint64_1 = $this->getUnsignedVarLong();
|
$this->entityUniqueId = $this->getUnsignedVarLong();
|
||||||
$this->uvarint64_2 = $this->getUnsignedVarLong();
|
$this->uvarint64_2 = $this->getUnsignedVarLong();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function encodePayload(){
|
protected function encodePayload(){
|
||||||
parent::encodePayload();
|
parent::encodePayload();
|
||||||
$this->putUnsignedVarLong($this->uvarint64_1);
|
$this->putUnsignedVarLong($this->entityUniqueId);
|
||||||
$this->putUnsignedVarLong($this->uvarint64_2);
|
$this->putUnsignedVarLong($this->uvarint64_2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user