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
No known key found for this signature in database
GPG Key ID: 9453647B005083A3
1 changed files with 3 additions and 0 deletions

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