mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-03 19:00:30 +02:00
Losen bounds for edgeasc5/7.
This commit is contained in:
parent
0a5f590801
commit
122e0727b8
|
@ -1337,7 +1337,7 @@ public class SurvivalFly extends Check {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (yDistance == 0.0 && data.sfLastYDist <= -0.3 && (hDistance <= data.sfLastHDist * 1.1)) {
|
else if (yDistance == 0.0 && data.sfLastYDist <= -0.23 && (hDistance <= data.sfLastHDist * 1.1)) {
|
||||||
// Similar to couldstep, with 0 y-distance but slightly above any ground nearby (no micro move!).
|
// Similar to couldstep, with 0 y-distance but slightly above any ground nearby (no micro move!).
|
||||||
// TODO: (hDistance <= data.sfLastHDist || hDistance <= hAllowedDistance)
|
// TODO: (hDistance <= data.sfLastHDist || hDistance <= hAllowedDistance)
|
||||||
// TODO: Confining in x/z direction in general: should detect if collided in that direction (then skip the x/z dist <= last time).
|
// TODO: Confining in x/z direction in general: should detect if collided in that direction (then skip the x/z dist <= last time).
|
||||||
|
@ -1374,7 +1374,7 @@ public class SurvivalFly extends Check {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
private boolean lostGroundStill(final Player player, final PlayerLocation from, final Location loc, final PlayerLocation to, final double hDistance, final double yDistance, final boolean sprinting, final MovingData data, final MovingConfig cc) {
|
private boolean lostGroundStill(final Player player, final PlayerLocation from, final Location loc, final PlayerLocation to, final double hDistance, final double yDistance, final boolean sprinting, final MovingData data, final MovingConfig cc) {
|
||||||
if (data.sfLastYDist <= -0.3) {
|
if (data.sfLastYDist <= -0.23) {
|
||||||
// TODO: Code duplication with edgeasc5 above.
|
// TODO: Code duplication with edgeasc5 above.
|
||||||
if (lostGroundEdgeAsc(player, from.getBlockCache(), to.getWorld(), to.getX(), to.getY(), to.getZ(), from.getX(), from.getY(), from.getZ(), hDistance, to.getWidth(), 0.3, data, "asc7")) {
|
if (lostGroundEdgeAsc(player, from.getBlockCache(), to.getWorld(), to.getX(), to.getY(), to.getZ(), from.getX(), from.getY(), from.getZ(), hDistance, to.getWidth(), 0.3, data, "asc7")) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user