mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
UpdateTradePacket: fix order of fields, closes #3327
This commit is contained in:
parent
365d4a1592
commit
3cd1da196a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user