mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-06 10:27:26 +02:00
Return false so that we can continue through the trace
This commit is contained in:
parent
3f0644930a
commit
fa96caf125
@ -146,6 +146,7 @@ public class Direction extends Check {
|
||||
final Vector blockEyes = new Vector(dLoc.x - loc.getX(), dLoc.y + context.damagedHeight / 2D - loc.getY() - player.getEyeHeight(), dLoc.z - loc.getZ());
|
||||
final double distance = blockEyes.crossProduct(context.direction).length() / context.lengthDirection;
|
||||
context.minViolation = Math.min(context.minViolation, distance);
|
||||
cancel = true;
|
||||
}
|
||||
context.minResult = Math.min(context.minResult, off);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user