Skip to content

Commit

Permalink
Fixed Freeze module making the player be kicked after a while of usag…
Browse files Browse the repository at this point in the history
…e. (CCBlueX#612)
  • Loading branch information
mems01 authored Aug 5, 2021
1 parent d9dd141 commit a0622a8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket
/**
* GodMode module
*
* Allows you to interact with selected blocks through walls.
* Allows you to be invulnerable.
*/

object ModuleGodMode : Module("GodMode", Category.EXPLOIT) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ import net.ccbluex.liquidbounce.features.module.Module
/**
* Dank bobbing module
*
* It adds more bobbing, so it's pretty much the opposite of no bobbing (which is in the no bobbing module and even a vanilla setting).
* Bobbing is the "shaking" of the camera when you move the player.
* Adds more bobbing effect.
*/
object ModuleDankBobbing : Module("DankBobbing", Category.FUN){

val motion by float("ExtraBob", 5f, 0f..50f)
val motion by float("Motion", 5f, 1f..50f)

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import net.ccbluex.liquidbounce.event.TransferOrigin
import net.ccbluex.liquidbounce.event.handler
import net.ccbluex.liquidbounce.features.module.Category
import net.ccbluex.liquidbounce.features.module.Module
import net.minecraft.network.packet.c2s.play.TeleportConfirmC2SPacket
import net.minecraft.network.packet.s2c.play.PlayerPositionLookS2CPacket

/**
* Freeze module
Expand All @@ -42,8 +42,8 @@ object ModuleFreeze : Module("Freeze", Category.MOVEMENT) {
}

val packetHandler = handler<PacketEvent> { event ->
if (mc.world != null && event.origin == TransferOrigin.SEND) {
if (event.packet is TeleportConfirmC2SPacket) {
if (mc.world != null && event.origin == TransferOrigin.RECEIVE) {
if (event.packet is PlayerPositionLookS2CPacket) {
enabled = false

return@handler
Expand Down
6 changes: 4 additions & 2 deletions src/main/resources/assets/liquidbounce/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@

"liquidbounce.module.forceUnicodeChat.description": "Translates all chat messages you send to Unicode.",

"liquidbounce.module.godMode.description": "Freezes you in your current position, therefore makes you invincible.",
"liquidbounce.module.godMode.description": "Allows you to be invulnerable.",

"liquidbounce.module.kick.description": "Kicks yourself from the server.",
"liquidbounce.module.kick.messages.cantEnableInSingleplayer": "Cannot enable %s in singleplayer.",
Expand Down Expand Up @@ -410,6 +410,8 @@

"liquidbounce.module.highJump.description": "Allows you to jump higher.",

"liquidbounce.module.sleepWalker.description": "Allows you to walk while sleeping, also makes your hitbox small."
"liquidbounce.module.sleepWalker.description": "Allows you to walk while sleeping, also makes your hitbox small.",

"liquidbounce.module.dankBobbing.description": "Adds more bobbing effect."

}

0 comments on commit a0622a8

Please sign in to comment.