mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-03-10 13:39:23 +01:00
Merge pull request #33 from Iceee/master
Further fix fight.direction check on players
This commit is contained in:
commit
4db6036a83
@ -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