mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-15 03:51:20 +01:00
Merge pull request #32 from Iceee/master
Fix fight.direction: pass the attackers location to the loop check.
This commit is contained in:
commit
c0de7d0306
@ -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