From e1746551893ad757e938eb22ff005c0e9c8240f8 Mon Sep 17 00:00:00 2001 From: videogame hacker Date: Tue, 15 Feb 2022 03:30:18 +0000 Subject: [PATCH] Bypass SendPacketEvent for Criticals motion updates This solves interception by NoFall causing the packets to not set a fall damage --- .../kotlin/codes/som/hibiscus/features/combat/Criticals.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/codes/som/hibiscus/features/combat/Criticals.kt b/src/main/kotlin/codes/som/hibiscus/features/combat/Criticals.kt index f2f0f1b..aaa8f8e 100644 --- a/src/main/kotlin/codes/som/hibiscus/features/combat/Criticals.kt +++ b/src/main/kotlin/codes/som/hibiscus/features/combat/Criticals.kt @@ -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,