Use isTouchingWater for NoSprintingPacket
parent
3265282b30
commit
f21aadb117
|
@ -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 New Issue