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:
Charlotte Som 2022-02-15 03:30:18 +00:00
parent f21aadb117
commit e174655189

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,