Merge pull request #33 from Iceee/master

Further fix fight.direction check on players
This commit is contained in:
asofold 2015-02-02 15:23:40 +01:00
commit 4db6036a83

View File

@ -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);