mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-04 03:10:27 +02:00
Fix the direction check
This commit is contained in:
parent
f3973cd043
commit
7d6416d0f9
|
@ -362,7 +362,7 @@ public class FightListener extends CheckListener implements JoinLeaveListener{
|
|||
}
|
||||
// TODO: Efficiency: don't check at all, if strict and !thisPassed.
|
||||
if (directionEnabled && (reachPassed || !directionPassed)) {
|
||||
if (direction.loopCheck(player, damagedLoc, damaged, entry, directionContext, data, cc)) {
|
||||
if (direction.loopCheck(player, loc, damaged, entry, directionContext, data, cc)) {
|
||||
thisPassed = false;
|
||||
} else {
|
||||
directionPassed = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user