Skip to content
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

Merged
merged 8 commits into from
Aug 29, 2024

Conversation

localpthebest
Copy link
Contributor

No description provided.

@localpthebest
Copy link
Contributor Author

Darn detekt!

Comment on lines 29 to 32
var ticks = 0
var airticks = 0
var disabled = false
var jump = false
Copy link
Member

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.

Comment on lines 60 to 64
if(player.isOnGround && jump) {
player.jump()
jump = false
disabled = true
} else if(disabled && airticks >= 10) {
Copy link
Member

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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inconsistent formatting

Comment on lines 68 to 70
player.velocity.x = 0.0
player.velocity.y = 0.0
player.velocity.z = 0.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use setVelocity method instead

@1zun4 1zun4 added this to the 0.12.0 milestone Aug 28, 2024
@1zun4 1zun4 merged commit 1ad32bf into CCBlueX:nextgen Aug 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants