forked from Clones/Controlify
remove vanilla override from jump
This commit is contained in:
@ -114,7 +114,6 @@ public class ControllerBindings<T extends ControllerState> {
|
||||
.identifier("controlify", "jump")
|
||||
.defaultBind(GamepadBinds.A_BUTTON)
|
||||
.category(MOVEMENT_CATEGORY)
|
||||
.vanillaOverride(options.keyJump, () -> false)
|
||||
.build());
|
||||
register(SPRINT = ControllerBindingBuilder.create(controller)
|
||||
.identifier("controlify", "sprint")
|
||||
|
@ -50,7 +50,10 @@ public class ControllerPlayerMovement extends Input {
|
||||
this.forwardImpulse *= f;
|
||||
}
|
||||
|
||||
this.jumping = bindings.JUMP.held();
|
||||
if (!this.jumping && bindings.JUMP.justPressed())
|
||||
this.jumping = true;
|
||||
else
|
||||
this.jumping = bindings.JUMP.held();
|
||||
|
||||
if (player.getAbilities().flying || player.isInWater() || !controller.config().toggleSneak) {
|
||||
this.shiftKeyDown = bindings.SNEAK.held();
|
||||
|
Reference in New Issue
Block a user