mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-30 20:37:52 +01:00
Use event.getTo for yawrate instead of player.getLocation.
This commit is contained in:
parent
1efb62c943
commit
2764515190
@ -48,7 +48,7 @@ public class CombinedListener implements Listener {
|
||||
final long now = System.currentTimeMillis();
|
||||
final Player player = event.getPlayer();
|
||||
|
||||
final Location loc = player.getLocation();
|
||||
final Location loc = event.getTo(); // player.getLocation();
|
||||
final String worldName = loc.getWorld().getName();
|
||||
final CombinedData data = CombinedData.getData(player);
|
||||
data.lastMoveTime = now;
|
||||
|
Loading…
Reference in New Issue
Block a user