mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +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;
|
||||
|
||||
/** @var int */
|
||||
protected $uvarint64_1 = 0;
|
||||
public $entityUniqueId = 0;
|
||||
/** @var int */
|
||||
protected $uvarint64_2 = 0;
|
||||
public $uvarint64_2 = 0;
|
||||
|
||||
protected function decodePayload(){
|
||||
parent::decodePayload();
|
||||
$this->uvarint64_1 = $this->getUnsignedVarLong();
|
||||
$this->entityUniqueId = $this->getUnsignedVarLong();
|
||||
$this->uvarint64_2 = $this->getUnsignedVarLong();
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
parent::encodePayload();
|
||||
$this->putUnsignedVarLong($this->uvarint64_1);
|
||||
$this->putUnsignedVarLong($this->entityUniqueId);
|
||||
$this->putUnsignedVarLong($this->uvarint64_2);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user