mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
UpdateBlockSyncedPacket: rename field
This commit is contained in:
parent
e87e2d4e52
commit
28b0f5f86a
@ -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 */
|
||||||
public $uvarint64_1 = 0;
|
public $entityUniqueId = 0;
|
||||||
/** @var int */
|
/** @var int */
|
||||||
public $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