Use isTouchingWater for NoSprintingPacket
parent
3265282b30
commit
f21aadb117
|
@ -11,7 +11,7 @@ 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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue