mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-03-10 05:29:12 +01:00
Allow "step-up" even if in web.
This commit is contained in:
parent
85c7e70447
commit
81b528f90b
@ -285,7 +285,14 @@ public class SurvivalFly extends Check {
|
||||
if (from.isInWeb()){
|
||||
data.sfNoLowJump = true;
|
||||
// Very simple: force players to descend or stay.
|
||||
vAllowedDistance = from.isOnGround() ? 0.1D : 0;
|
||||
if (toOnGround && yDistance > 0.0 && yDistance <= 0.5){
|
||||
// Step up. Note: Does not take into account jump effect on purpose.
|
||||
vAllowedDistance = yDistance;
|
||||
tags.add("web_step");
|
||||
}
|
||||
else{
|
||||
vAllowedDistance = from.isOnGround() ? 0.1D : 0;
|
||||
}
|
||||
data.jumpAmplifier = 0; // TODO: later maybe fetch.
|
||||
vDistanceAboveLimit = yDistance - vAllowedDistance;
|
||||
if (cc.survivalFlyCobwebHack && vDistanceAboveLimit > 0 && hDistanceAboveLimit <= 0){
|
||||
|
Loading…
Reference in New Issue
Block a user