Fix jumping from packplaced blocks on water

Not having frostwalker means that we must have replaced the water with a throwaway, not that we are standing on water
This commit is contained in:
ZacSharp 2022-09-30 18:04:34 +02:00
parent 9ffe4f2c25
commit 45c0b38156
No known key found for this signature in database
GPG Key ID: 9453647B005083A3
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public class MovementParkour extends Movement {
return;
}
// we can't jump from (frozen) water with assumeWalkOnWater because we can't be sure it will be frozen
if (standingOn.getBlock() instanceof BlockLiquid && (!MovementHelper.canUseFrostWalker(context, standingOn) || context.assumeWalkOnWater)) {
if (context.assumeWalkOnWater && standingOn.getBlock() instanceof BlockLiquid) {
return;
}
int maxJump;