This commit is contained in:
Murat65536
2025-07-22 11:34:56 -04:00
parent 65d0d860dd
commit c8dcbeb6f8

View File

@@ -104,17 +104,12 @@ public class MovementParkour extends Movement {
int maxJump; int maxJump;
if (context.allowWalkOnMagmaBlocks && standingOn.is(Blocks.MAGMA_BLOCK)) { if (context.allowWalkOnMagmaBlocks && standingOn.is(Blocks.MAGMA_BLOCK)) {
maxJump = 2; maxJump = 2;
} } else if (standingOn.getBlock() == Blocks.SOUL_SAND) {
else if (standingOn.getBlock() == Blocks.SOUL_SAND) {
maxJump = 2; // 1 block gap maxJump = 2; // 1 block gap
} } else if (context.canSprint) {
else { maxJump = 4;
if (context.canSprint) { } else {
maxJump = 4; maxJump = 3;
}
else {
maxJump = 3;
}
} }
// check parkour jumps from smallest to largest for obstacles/walls and landing positions // check parkour jumps from smallest to largest for obstacles/walls and landing positions