From 3cd1da196a18fd74baa03784df74744d47c2977c Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 24 Feb 2020 20:16:07 +0000 Subject: [PATCH] UpdateTradePacket: fix order of fields, closes #3327 --- .../network/mcpe/protocol/UpdateTradePacket.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pocketmine/network/mcpe/protocol/UpdateTradePacket.php b/src/pocketmine/network/mcpe/protocol/UpdateTradePacket.php index 8bf01c70d..1a0b3be60 100644 --- a/src/pocketmine/network/mcpe/protocol/UpdateTradePacket.php +++ b/src/pocketmine/network/mcpe/protocol/UpdateTradePacket.php @@ -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); }