mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-06 10:27:26 +02:00
Reduce false positives with survivalfly + swimup (jump, half-steps).
This commit is contained in:
parent
602b4c70b4
commit
08427fb3f1
@ -264,7 +264,8 @@ public class SurvivalFly extends Check {
|
||||
// Swimming...
|
||||
if (yDistance >= 0){
|
||||
// TODO: This is more simple to test.
|
||||
if (!to.isInLiquid()){
|
||||
if (!to.isInLiquid() || toOnGround && yDistance <= 0.5 || data.sfLastYDist - yDistance <= 0.1){
|
||||
// TODO: Friction in water...
|
||||
vAllowedDistance = swimmingSpeed + 0.5;
|
||||
}
|
||||
else{
|
||||
|
Loading…
Reference in New Issue
Block a user