mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +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;
|
||||
|
||||
/** @var int */
|
||||
public $uvarint64_1 = 0;
|
||||
public $entityUniqueId = 0;
|
||||
/** @var int */
|
||||
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