From a534b1c8256c9df9a513b9d09f0584e80f01caa3 Mon Sep 17 00:00:00 2001 From: Jaoreir Date: Sat, 20 Jul 2024 11:20:37 +0800 Subject: [PATCH] Attempt to make slide jump less overpowered by decaying the bonus velocity --- .../io/github/beeebea/fastmove/mixin/PlayerEntityMixin.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/io/github/beeebea/fastmove/mixin/PlayerEntityMixin.java b/src/main/java/io/github/beeebea/fastmove/mixin/PlayerEntityMixin.java index 1e251d4..dfa14a1 100644 --- a/src/main/java/io/github/beeebea/fastmove/mixin/PlayerEntityMixin.java +++ b/src/main/java/io/github/beeebea/fastmove/mixin/PlayerEntityMixin.java @@ -228,6 +228,9 @@ private void fastmove_tick(CallbackInfo info) { moveState = MoveState.NONE; } } + if (lastMoveState == MoveState.SLIDING && moveState != MoveState.SLIDING) { + bonusDecay = 0.3; // TODO: Value should be configurable + } if(FastMove.getConfig().wallRunEnabled()) fastmove_WallRun();