Closed genandnic closed 4 years ago
For whatever reason that appears to be flyingSpeed
on Yarn mappings -- I'll try to fix it using that.
So it really bothered me that the player's airspeed did not scale with the players ground speed in vanilla minecraft. For example, after you drink a speed boost potion in the base game it's actually slower to jump while sprinting (without the potion it's faster). Or when you drink a jump boost potion your jump height increases but the distance traveled horizontally stays the same, which makes the effect kinda boring.
The tweak is really subtle, though. If the variable isn't available I'd just remove that block entirely. It doesn't have anything to do with the speed boost enchantments anyway, they'd be completely unaffected.
Thanks for the explanation -- indeed I never really noticed it but it does make Potion of Leaping way more nice to use now.
I found a way to fix it :D beta3 incoming with the fix.
That issue comes from the port of the following part (https://github.com/genandnic/Wall-Jump/blob/1.15/src/main/java/genandnic/walljump/client/SpeedBoostLogic.java#L24-L27):
@genandnic could you please explain to me what's the objective of this code? I take it gets the active level of the vanilla jump boost potion effect and then overrides the
jumpMovementFactor
based on movement speed, whether the player is sprinting or not and the previously obtained jumpBoostLevel. But how isjumpMovementFactor
related toaiMoveSpeed
?Sadly I fail to find anything matching this
jumpMovementFactor
inClientPlayerEntity
on Fabric decompiled mapped sources.getAIMoveSpeed
seems to simply begetMovementSpeed
on my side.I might be able to replicate behavior in another place though, but I fail to understand this part.