mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-04 03:10:27 +02:00
Prevent too easy abuse of bunny-hop delay resetting.
This commit is contained in:
parent
34a5b2a089
commit
7521f0169f
|
@ -476,8 +476,9 @@ public class SurvivalFly extends Check {
|
|||
// The player has moved onto ground.
|
||||
if (toOnGround) {
|
||||
// Reset bunny-hop-delay.
|
||||
if (data.bunnyhopDelay > 0 && yDistance > 0.0 && to.getY() > data.getSetBackY() && !from.isResetCond() && !to.isResetCond()) {
|
||||
if (data.bunnyhopDelay > 0 && yDistance > 0.0 && to.getY() > data.getSetBackY() + 0.12 && !from.isResetCond() && !to.isResetCond()) {
|
||||
data.bunnyhopDelay = 0;
|
||||
tags.add("resetbunny");
|
||||
}
|
||||
// TODO: Experimental: reset vertical velocity.
|
||||
if (data.verticalVelocityUsed > cc.velocityGraceTicks && yDistance < 0) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user