Don't try parkouring out of water
This commit is contained in:
parent
43ee86b4fe
commit
fb814e912d
@ -99,6 +99,9 @@ public class MovementParkour extends Movement {
|
|||||||
if (context.assumeWalkOnWater && standingOn.getBlock() instanceof BlockLiquid) {
|
if (context.assumeWalkOnWater && standingOn.getBlock() instanceof BlockLiquid) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (context.getBlock(x, y, z) instanceof BlockLiquid) {
|
||||||
|
return; // can't jump out of water
|
||||||
|
}
|
||||||
int maxJump;
|
int maxJump;
|
||||||
if (standingOn.getBlock() == Blocks.SOUL_SAND) {
|
if (standingOn.getBlock() == Blocks.SOUL_SAND) {
|
||||||
maxJump = 2; // 1 block gap
|
maxJump = 2; // 1 block gap
|
||||||
|
Loading…
Reference in New Issue
Block a user