Grappling Hook Mod

Grappling Hook Mod

23M Downloads

[BUG] You cannot use elytra if you're wearing double-jump boots.

T0RNATO opened this issue ยท 3 comments

commented

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

  1. Wear boots with the Double Jump enchantment
  2. Wear elytra
  3. Jump off a cliff
  4. On the first spacebar hit, you double jump
  5. On the second, nothing happens and the elytra doesn't work.
commented

I second this, I have to take off my double jump shoes in order to use it, kinda annoying.

commented

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.

commented

Note; I don't have wall sliding or any of the other options (yet); so I don't know if this will interfere with anything else this mods offers.