[BUG] You cannot use elytra if you're wearing double-jump boots.
T0RNATO opened this issue ยท 3 comments
Describe the bug
If you're wearing boots with the double-jump enchantment, pressing space will trigger that, but then will do nothing instead of triggering the elytra. (This killed me in my survival world.๐)
Version
1.16.5, v12.
Output Log
N/A
To Reproduce
- Wear boots with the Double Jump enchantment
- Wear elytra
- Jump off a cliff
- On the first spacebar hit, you double jump
- On the second, nothing happens and the elytra doesn't work.
I second this, I have to take off my double jump shoes in order to use it, kinda annoying.
I fixed this to my personal satisfaction by updating AirfrictionController.java inside the function checkDoubleJump(). I added an else to the if (!alreadyUsedDoubleJump) to do this:
} else {
GrappleController controller = controllers.get(player.getId());
if (controller instanceof AirfrictionController) {
controller.unattach();
return;
}
}
That fixes my issue. The other way which was suggested was to turn dont_override_movement_in_air to true but this didn't have the expected results; this resulted in me flying every time I double jump vs double jumping and only flying if I hit the space bar again. This also makes it so I can jump while climbing a ladder again.