Merge branch 'release/alpha12'

This commit is contained in:
Dylan K. Taylor 2018-05-22 18:50:24 +01:00
commit c9ed517063

View File

@ -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);
} }