InventoryTransactionPacket: Update some field names

This commit is contained in:
Dylan K. Taylor 2018-01-24 13:49:19 +00:00
parent 1d4bafb6ff
commit 41592a04b7

View File

@ -91,8 +91,8 @@ class InventoryTransactionPacket extends DataPacket{
$this->trData->actionType = $this->getUnsignedVarInt(); $this->trData->actionType = $this->getUnsignedVarInt();
$this->trData->hotbarSlot = $this->getVarInt(); $this->trData->hotbarSlot = $this->getVarInt();
$this->trData->itemInHand = $this->getSlot(); $this->trData->itemInHand = $this->getSlot();
$this->trData->vector1 = $this->getVector3(); $this->trData->playerPos = $this->getVector3();
$this->trData->vector2 = $this->getVector3(); $this->trData->clickPos = $this->getVector3();
break; break;
case self::TYPE_RELEASE_ITEM: case self::TYPE_RELEASE_ITEM:
$this->trData->actionType = $this->getUnsignedVarInt(); $this->trData->actionType = $this->getUnsignedVarInt();
@ -131,8 +131,8 @@ class InventoryTransactionPacket extends DataPacket{
$this->putUnsignedVarInt($this->trData->actionType); $this->putUnsignedVarInt($this->trData->actionType);
$this->putVarInt($this->trData->hotbarSlot); $this->putVarInt($this->trData->hotbarSlot);
$this->putSlot($this->trData->itemInHand); $this->putSlot($this->trData->itemInHand);
$this->putVector3($this->trData->vector1); $this->putVector3($this->trData->playerPos);
$this->putVector3($this->trData->vector2); $this->putVector3($this->trData->clickPos);
break; break;
case self::TYPE_RELEASE_ITEM: case self::TYPE_RELEASE_ITEM:
$this->putUnsignedVarInt($this->trData->actionType); $this->putUnsignedVarInt($this->trData->actionType);