-
-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Hypixel motion disabler + lowhop #3816
Conversation
Darn detekt! |
var ticks = 0 | ||
var airticks = 0 | ||
var disabled = false | ||
var jump = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
airTicks
also, make them private, same for all the handlers below.
if(player.isOnGround && jump) { | ||
player.jump() | ||
jump = false | ||
disabled = true | ||
} else if(disabled && airticks >= 10) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inconsistent formatting
@Suppress("unused") | ||
private val onNetworkTick = handler<PlayerNetworkMovementTickEvent> { event -> | ||
if(event.state != EventState.PRE) return@handler | ||
if(!player.isOnGround) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inconsistent formatting
player.velocity.x = 0.0 | ||
player.velocity.y = 0.0 | ||
player.velocity.z = 0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use setVelocity method instead
No description provided.