diff --git a/blokk-packet-codecs/src/main/kotlin/space/blokk/net/packet/play/PlayerAbilitiesPacketCodec.kt b/blokk-packet-codecs/src/main/kotlin/space/blokk/net/packet/play/PlayerAbilitiesPacketCodec.kt index fdb24a6..801430e 100644 --- a/blokk-packet-codecs/src/main/kotlin/space/blokk/net/packet/play/PlayerAbilitiesPacketCodec.kt +++ b/blokk-packet-codecs/src/main/kotlin/space/blokk/net/packet/play/PlayerAbilitiesPacketCodec.kt @@ -3,7 +3,7 @@ package space.blokk.net.packet.play import io.netty.buffer.ByteBuf import space.blokk.net.packet.OutgoingPacketCodec -object PlayerAbilitiesPacketCodec : OutgoingPacketCodec(0x32, PlayerAbilitiesPacket::class) { +object PlayerAbilitiesPacketCodec : OutgoingPacketCodec(0x30, PlayerAbilitiesPacket::class) { override fun PlayerAbilitiesPacket.encode(dst: ByteBuf) { var flags = 0 if (invulnerable) flags = flags and 0x01 diff --git a/blokk-packet-codecs/src/main/kotlin/space/blokk/net/packet/play/SetSelectedHotbarSlotPacketCodec.kt b/blokk-packet-codecs/src/main/kotlin/space/blokk/net/packet/play/SetSelectedHotbarSlotPacketCodec.kt index 95bfac1..9fa1ddc 100644 --- a/blokk-packet-codecs/src/main/kotlin/space/blokk/net/packet/play/SetSelectedHotbarSlotPacketCodec.kt +++ b/blokk-packet-codecs/src/main/kotlin/space/blokk/net/packet/play/SetSelectedHotbarSlotPacketCodec.kt @@ -4,7 +4,7 @@ import io.netty.buffer.ByteBuf import space.blokk.net.packet.OutgoingPacketCodec object SetSelectedHotbarSlotPacketCodec : - OutgoingPacketCodec(0x40, SetSelectedHotbarSlotPacket::class) { + OutgoingPacketCodec(0x15, SetSelectedHotbarSlotPacket::class) { override fun SetSelectedHotbarSlotPacket.encode(dst: ByteBuf) { dst.writeByte(index.toInt()) }