mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-15 08:28:10 +02:00
Allow stuck players to jump upwards if head is free.
This commit is contained in:
parent
29f5a153a5
commit
0fff534cd1
@ -66,6 +66,10 @@ public class Passable extends Check {
|
|||||||
else if (!from.isSameBlock(lbX, lbY, lbZ)){
|
else if (!from.isSameBlock(lbX, lbY, lbZ)){
|
||||||
// Otherwise keep loc as set-back.
|
// Otherwise keep loc as set-back.
|
||||||
}
|
}
|
||||||
|
else if (to.isBlockAbove(from) && BlockProperties.isPassable(from.getBlockCache(), from.getX(), from.getY() + player.getEyeHeight(), from.getZ(), from.getTypeId(from.getBlockX(), Location.locToBlock(from.getY() + player.getEyeHeight()), from.getBlockZ()))){
|
||||||
|
// Allow the move up if the head is free.
|
||||||
|
return null;
|
||||||
|
}
|
||||||
else if (!from.isSameBlock(to)){
|
else if (!from.isSameBlock(to)){
|
||||||
// Otherwise keep from as set-back.
|
// Otherwise keep from as set-back.
|
||||||
loc = null;
|
loc = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user