InventoryTransactionPacket: added missing field for encode

This commit is contained in:
Dylan K. Taylor 2020-06-26 20:57:48 +01:00
parent c267137fde
commit a6c1b7bf9c

View File

@ -129,6 +129,8 @@ class InventoryTransactionPacket extends DataPacket{
$this->putUnsignedVarInt($this->transactionType);
$this->putBool($this->hasItemStackIds);
$this->putUnsignedVarInt(count($this->actions));
foreach($this->actions as $action){
$action->write($this, $this->hasItemStackIds);