mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-29 23:17:41 +02:00
Add missing check to.isOnGround() to creativefly step_up.
This commit is contained in:
parent
5629bfe009
commit
3b1260bf57
@ -172,7 +172,9 @@ public class CreativeFly extends Check {
|
||||
double resultV = Math.max(0.0, (yDistance - limitV) * 100.0);
|
||||
// Ordinary step up. TODO: sfStepHeight should be a common modeling parameter?
|
||||
if (yDistance < cc.sfStepHeight
|
||||
&& (lastMove.toIsValid && lastMove.yDistance < 0.0 || from.isOnGroundOrResetCond())) {
|
||||
&& (lastMove.toIsValid && lastMove.yDistance < 0.0 || from.isOnGroundOrResetCond())
|
||||
&& to.isOnGround()) {
|
||||
// (Jump effect not checked yet.)
|
||||
resultV = 0.0;
|
||||
tags.add("step_up");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user