Don't try parkouring out of water

This commit is contained in:
ZacSharp
2022-09-30 23:59:49 +02:00
parent 43ee86b4fe
commit fb814e912d

View File

@@ -99,6 +99,9 @@ public class MovementParkour extends Movement {
if (context.assumeWalkOnWater && standingOn.getBlock() instanceof BlockLiquid) {
return;
}
if (context.getBlock(x, y, z) instanceof BlockLiquid) {
return; // can't jump out of water
}
int maxJump;
if (standingOn.getBlock() == Blocks.SOUL_SAND) {
maxJump = 2; // 1 block gap