mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-14 19:41:21 +01:00
Fix moving.debug output, add output for silent cobweb set-back.
This commit is contained in:
parent
d8733f873b
commit
7fa1238c4e
@ -221,10 +221,13 @@ public class SurvivalFly extends Check {
|
|||||||
data.jumpAmplifier = 0; // TODO: later maybe fetch.
|
data.jumpAmplifier = 0; // TODO: later maybe fetch.
|
||||||
vDistanceAboveLimit = yDistance;
|
vDistanceAboveLimit = yDistance;
|
||||||
if (cc.survivalFlyCobwebHack && vDistanceAboveLimit > 0 && hDistanceAboveLimit <= 0){
|
if (cc.survivalFlyCobwebHack && vDistanceAboveLimit > 0 && hDistanceAboveLimit <= 0){
|
||||||
// TODO: Seemed fixed at first by CB/MC, but still does occur.
|
// TODO: Seemed fixed at first by CB/MC, but still does occur due to jumping.
|
||||||
final Location silentSetBack = hackCobweb(player, data, to, now, vDistanceAboveLimit);
|
final Location silentSetBack = hackCobweb(player, data, to, now, vDistanceAboveLimit);
|
||||||
if (silentSetBack != null){
|
if (silentSetBack != null){
|
||||||
if (cc.debug) System.out.println(player.getName()+ " (Cobweb: silent set-back)");
|
if (cc.debug) {
|
||||||
|
tags.add("silentsbcobweb");
|
||||||
|
outputDebug(player, data, cc, hDistance, hAllowedDistance, yDistance, vAllowedDistance, fromOnGround, resetFrom, toOnGround, resetTo);
|
||||||
|
}
|
||||||
return silentSetBack;
|
return silentSetBack;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -327,7 +330,7 @@ public class SurvivalFly extends Check {
|
|||||||
|
|
||||||
if (cc.debug) {
|
if (cc.debug) {
|
||||||
// Put in a method for shorter code.
|
// Put in a method for shorter code.
|
||||||
outputDebug(player, data, cc, hDistanceAboveLimit, hAllowedDistance, yDistance, vAllowedDistance, fromOnGround, resetFrom, toOnGround, resetTo);
|
outputDebug(player, data, cc, hDistance, hAllowedDistance, yDistance, vAllowedDistance, fromOnGround, resetFrom, toOnGround, resetTo);
|
||||||
}
|
}
|
||||||
|
|
||||||
data.sfJumpPhase++;
|
data.sfJumpPhase++;
|
||||||
|
Loading…
Reference in New Issue
Block a user