UpdateTradePacket: fix order of fields, closes #3327

This commit is contained in:
Dylan K. Taylor 2020-02-24 20:16:07 +00:00
parent 365d4a1592
commit 3cd1da196a

View File

@ -48,9 +48,9 @@ class UpdateTradePacket extends DataPacket{
/** @var string */
public $displayName;
/** @var bool */
public $isWilling;
/** @var bool */
public $isV2Trading;
/** @var bool */
public $isWilling;
/** @var string */
public $offers;
@ -62,8 +62,8 @@ class UpdateTradePacket extends DataPacket{
$this->traderEid = $this->getEntityUniqueId();
$this->playerEid = $this->getEntityUniqueId();
$this->displayName = $this->getString();
$this->isWilling = $this->getBool();
$this->isV2Trading = $this->getBool();
$this->isWilling = $this->getBool();
$this->offers = $this->getRemaining();
}
@ -75,8 +75,8 @@ class UpdateTradePacket extends DataPacket{
$this->putEntityUniqueId($this->traderEid);
$this->putEntityUniqueId($this->playerEid);
$this->putString($this->displayName);
$this->putBool($this->isWilling);
$this->putBool($this->isV2Trading);
$this->putBool($this->isWilling);
$this->put($this->offers);
}