mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-02-04 05:41:28 +01:00
Hot fix (fight/angle): check worlds of locations.
This commit is contained in:
parent
8a8e02c758
commit
5cfeea44bb
@ -69,7 +69,7 @@ public class Angle extends Check {
|
||||
for (final long time : data.angleHits.descendingKeySet()) {
|
||||
final Location location = data.angleHits.get(time);
|
||||
// We need a previous location to calculate deltas.
|
||||
if (previousLocation != null) {
|
||||
if (previousLocation != null && location.getWorld().getName().equals(previousLocation.getWorld().getName())) {
|
||||
// Calculate the distance between the two locations.
|
||||
deltaMove += previousLocation.distanceSquared(location);
|
||||
// Calculate the time elapsed between the two hits.
|
||||
|
Loading…
Reference in New Issue
Block a user