mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-02 13:57:49 +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 long now = System.currentTimeMillis();
|
||||||
final Player player = event.getPlayer();
|
final Player player = event.getPlayer();
|
||||||
|
|
||||||
final Location loc = player.getLocation();
|
final Location loc = event.getTo(); // player.getLocation();
|
||||||
final String worldName = loc.getWorld().getName();
|
final String worldName = loc.getWorld().getName();
|
||||||
final CombinedData data = CombinedData.getData(player);
|
final CombinedData data = CombinedData.getData(player);
|
||||||
data.lastMoveTime = now;
|
data.lastMoveTime = now;
|
||||||
|
Loading…
Reference in New Issue
Block a user