Use isTouchingWater for NoSprintingPacket
This commit is contained in:
parent
3265282b30
commit
f21aadb117
1 changed files with 2 additions and 2 deletions
|
@ -11,12 +11,12 @@ class NoSprintingPacket : Feature("No Sprinting Packet", FeatureCategory.PLAYER)
|
|||
on { event: SendPacketEvent ->
|
||||
val (packet) = event
|
||||
if (packet is ClientCommandC2SPacket) {
|
||||
if (packet.mode == ClientCommandC2SPacket.Mode.START_SPRINTING && !player.isSubmergedInWater) {
|
||||
if (packet.mode == ClientCommandC2SPacket.Mode.START_SPRINTING && !player.isTouchingWater) {
|
||||
event.cancel()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
hiddenInOverlay = true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue