Bypass SendPacketEvent for Criticals motion updates
This solves interception by NoFall causing the packets to not set a fall damage
This commit is contained in:
parent
f21aadb117
commit
e174655189
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue