Skip to content

Commit

Permalink
Update FireballFly.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
C00LC0D35 authored Dec 3, 2023
1 parent 3b37fe3 commit b2797bb
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ class FireballFly : FlyMode("Fireball") {
if (warn.get())
ClientUtils.displayChatMessage("§8[§c§lFireball-Flight§8] §aGetting exlposion from a fireball or tnt from behind is required to bypass.")
velocitypacket = false
beforeVelo = false
mc.thePlayer.rotationYaw += 180.0
mc.thePlayer.rotationPitch = 70.0
mc.thePlayer.rotationYaw += 180f
mc.thePlayer.rotationPitch = 70f
}

override fun onUpdate(event: UpdateEvent) {
mc.timer.timerSpeed = 1.0f
if(velocitypacket) {
mc.thePlayer.rotationYaw += 180.0
mc.thePlayer.rotationPitch = 30.0
mc.thePlayer.rotationYaw += 180f
mc.thePlayer.rotationPitch = 30f
mc.thePlayer.motionX *= boostValue.get().toDouble()
mc.thePlayer.motionZ *= boostValue.get().toDouble()
velocitypacket = false
}
}

Expand All @@ -50,7 +50,6 @@ class FireballFly : FlyMode("Fireball") {
val packet = event.packet

if (packet is S27PacketExplosion ) {
tick = 0
velocitypacket = true
}
}
Expand Down

0 comments on commit b2797bb

Please sign in to comment.