Use event.getTo for yawrate instead of player.getLocation.

This commit is contained in:
asofold 2012-10-19 00:05:16 +02:00
parent 1efb62c943
commit 2764515190

View File

@ -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;