Fix EntityEquipment having the wrong byte length

This commit is contained in:
Holly Stubbs 2023-11-05 10:56:11 +00:00
parent 1b2b1a091e
commit 8fc6836b29
Signed by: tgpholly
GPG key ID: B8583C4B7D18119E

View file

@ -26,6 +26,6 @@ export class PacketEntityEquipment implements IPacket {
}
public writeData() {
return createWriter(Endian.BE, 10).writeUByte(this.packetId).writeInt(this.entityId).writeShort(this.slot).writeShort(this.itemId).writeShort(this.damage).toBuffer();
return createWriter(Endian.BE, 11).writeUByte(this.packetId).writeInt(this.entityId).writeShort(this.slot).writeShort(this.itemId).writeShort(this.damage).toBuffer();
}
}