Thanks to @ArkQuark

This commit is contained in:
yefengeeeeeeeeeee 2025-04-08 18:00:05 +08:00
parent e4538e166e
commit 490516fa04
3 changed files with 22 additions and 21 deletions

View file

@ -17,7 +17,7 @@ class PlayerEquipmentPacket extends RakNetDataPacket{
$this->eid = $this->getInt();
$this->item = $this->getShort();
$this->meta = $this->getShort();
$this->slot = $this->getSignedByte();
if($this->PROTOCOL === ProtocolInfo::CURRENT_PROTOCOL){$this->slot = $this->getSignedByte();}
}
public function encode(){
@ -25,7 +25,7 @@ class PlayerEquipmentPacket extends RakNetDataPacket{
$this->putInt($this->eid);
$this->putShort($this->item);
$this->putShort($this->meta);
$this->putByte($this->slot);
if($this->PROTOCOL === ProtocolInfo::CURRENT_PROTOCOL){$this->putByte($this->slot);}
}
}