mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-15 23:05:12 +01:00
No set back no deal (on the paper).
This commit is contained in:
parent
24b25406a0
commit
7994961684
@ -281,7 +281,17 @@ public class Magic {
|
||||
*/
|
||||
public static boolean skipPaper(final PlayerMoveData thisMove, final PlayerMoveData lastMove, final MovingData data) {
|
||||
// TODO: Confine to from at block level (offset 0)?
|
||||
final double setBackYDistance = thisMove.to.getY() - data.getSetBackY();
|
||||
final double setBackYDistance;
|
||||
if (data.hasSetBack()) {
|
||||
setBackYDistance = thisMove.to.getY() - data.getSetBackY();
|
||||
}
|
||||
// Skip being all too forgiving here.
|
||||
// else if (thisMove.touchedGround) {
|
||||
// setBackYDistance = 0.0;
|
||||
// }
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
return !lastMove.toIsValid && data.sfJumpPhase == 0 && thisMove.multiMoveCount > 0
|
||||
&& setBackYDistance > 0.0 && setBackYDistance < PAPER_DIST
|
||||
&& thisMove.yDistance > 0.0 && thisMove.yDistance < PAPER_DIST && inAir(thisMove);
|
||||
|
Loading…
Reference in New Issue
Block a user