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

fix: Auto switch elytra #6

Merged

Conversation

zly2006
Copy link

@zly2006 zly2006 commented Jun 23, 2024

You said in your release note:

if you've fallen at least 20 blocks, and "double jump"

but this feature is broken with your changes, double jump didn't work. I have fixed it and removed the 20 block fall distance check.

@sakura-ryoko
Copy link
Owner

sakura-ryoko commented Jun 23, 2024

Okay, I'll test this out. I love how you are using my Enchantment level code as part of this now. Using the setting part wasn't working out the way I was thinking.

@sakura-ryoko
Copy link
Owner

sakura-ryoko commented Jun 23, 2024

The ideas I was testing before, had everything to do with Falling versus trying to fly, and how far, etc; or if the Chest slot was empty previously.

@sakura-ryoko
Copy link
Owner

Okay, so far, this version is working better than before, thank you. The way it was originally, was too janky; and it would keep activating even if you were just jumping up a block...

@sakura-ryoko
Copy link
Owner

I'll wait to merge until you reply and do any additional testing.

zly2006 and others added 2 commits June 23, 2024 13:49
…abric/1.21' into auto-switch-elytra

# Conflicts:
#	src/main/java/fi/dy/masa/tweakeroo/mixin/MixinClientPlayerEntity.java
@zly2006
Copy link
Author

zly2006 commented Jun 23, 2024

The way it was originally, was too janky; and it would keep activating even if you were just jumping up a block..

Yes it is a bug because minecraft tries to start flying even if the player isOnGround(), so I added a check for this. It is OK to merge now.

@sakura-ryoko
Copy link
Owner

I was only doing some simple reformatting, and taking notes of the "fallDistance" method for the future.

@zly2006
Copy link
Author

zly2006 commented Jun 23, 2024

Yes so it is ok to merge. Do you prefer to merging this PR now, or adding fallDistance threshold options in this PR?

@sakura-ryoko
Copy link
Owner

Yes so it is ok to merge. Do you prefer to merging this PR now, or adding fallDistance threshold options in this PR?

I don't think I'm going to add that if you've addressed the original issue.

@sakura-ryoko sakura-ryoko merged commit 60d518f into sakura-ryoko:pre-rewrite/fabric/1.21 Jun 23, 2024
2 checks passed
@zly2006 zly2006 deleted the auto-switch-elytra branch June 23, 2024 06:32
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.

2 participants