Skip to content
This repository was archived by the owner on Oct 27, 2025. It is now read-only.

Commit dc3e4d0

Browse files
committed
use protocol: v844.1
1 parent abc7afe commit dc3e4d0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ disruptor = "4.0.0"
3636
caffeine-ver = "3.2.0"
3737

3838
# Kotlin Multiplatform Libraries
39-
chorus-protocol = "v844.0"
39+
chorus-protocol = "v844.1"
4040
chorus-raknet = "0.0.3"
4141
chorus-kflate = "0.0.1"
4242
chorus-snappy = "0.0.1"

src/jvmMain/kotlin/inventory/HumanInventory.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ class HumanInventory(human: IHuman) //9+27+4
516516
list = armor.toList().foldIndexed(mutableListOf()) { i, acc, item ->
517517
if (!item.isNothing) acc.add(
518518
PlayerArmorDamagePacket.Entry(
519-
slot = (i * 2).toByte(),
519+
slot = i,
520520
damage = item.damage.toShort()
521521
)
522522
)
@@ -586,7 +586,7 @@ class HumanInventory(human: IHuman) //9+27+4
586586
val pk2 = PlayerArmorDamagePacket(
587587
list = listOf(
588588
PlayerArmorDamagePacket.Entry(
589-
slot = (index * 2).toByte(),
589+
slot = index,
590590
damage = (if (!armor[index].isNothing) armor[index].damage else 0).toShort()
591591
)
592592
)

0 commit comments

Comments
 (0)