Bypass SendPacketEvent for Criticals motion updates

This solves interception by NoFall causing the packets to not set a fall
damage
main
Charlotte Som 2022-02-15 03:30:18 +00:00
parent f21aadb117
commit e174655189
1 changed files with 3 additions and 3 deletions

View File

@ -21,14 +21,14 @@ class Criticals : Feature("Criticals", FeatureCategory.COMBAT) {
return@on
player.isSprinting = false
player.networkHandler.sendPacket(
player.networkHandler.connection.send(
ClientCommandC2SPacket(
player,
ClientCommandC2SPacket.Mode.STOP_SPRINTING
)
)
player.networkHandler.sendPacket(
player.networkHandler.connection.send(
PlayerMoveC2SPacket.PositionAndOnGround(
player.x,
player.y + 0.0625,
@ -37,7 +37,7 @@ class Criticals : Feature("Criticals", FeatureCategory.COMBAT) {
)
)
player.networkHandler.sendPacket(
player.networkHandler.connection.send(
PlayerMoveC2SPacket.PositionAndOnGround(
player.x,
player.y,