mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-26 10:28:05 +01:00
Fix cobweb + jumping.
This commit is contained in:
parent
7fa1238c4e
commit
a123e02251
@ -219,7 +219,7 @@ public class SurvivalFly extends Check {
|
||||
// Very simple: force players to descend or stay.
|
||||
vAllowedDistance = from.isOnGround() ? 0.1D : 0;
|
||||
data.jumpAmplifier = 0; // TODO: later maybe fetch.
|
||||
vDistanceAboveLimit = yDistance;
|
||||
vDistanceAboveLimit = yDistance - vAllowedDistance;
|
||||
if (cc.survivalFlyCobwebHack && vDistanceAboveLimit > 0 && hDistanceAboveLimit <= 0){
|
||||
// TODO: Seemed fixed at first by CB/MC, but still does occur due to jumping.
|
||||
final Location silentSetBack = hackCobweb(player, data, to, now, vDistanceAboveLimit);
|
||||
|
Loading…
Reference in New Issue
Block a user