Fixed packet decoder issue where bytes were read out of sequence

This commit is contained in:
Ceikry 2022-12-17 23:55:57 +00:00 committed by Ryan
parent 9866afbd5d
commit 8188c72417

View file

@ -407,6 +407,7 @@ enum class Decoders530(val opcode: Int) {
val child = buffer.leShort val child = buffer.leShort
val iface = buffer.leShort val iface = buffer.leShort
val itemSlot = buffer.leShortA val itemSlot = buffer.leShortA
val unused = buffer.leInt //unused???
val itemId = buffer.shortA val itemId = buffer.shortA
buffer.shortA //more ignored data.... buffer.shortA //more ignored data....
return Packet.ComponentItemAction(player, iface, child, itemId, itemSlot) return Packet.ComponentItemAction(player, iface, child, itemId, itemSlot)