We don't care about teleports to the same spot.

This commit is contained in:
GJ 2013-08-23 08:58:23 -04:00
parent 0ce41150c6
commit 490bc195d8

View File

@ -78,7 +78,7 @@ public class PlayerListener implements Listener {
public void onPlayerTeleport(PlayerTeleportEvent event) {
Player player = event.getPlayer();
if (Misc.isNPCEntity(player) || !Config.getInstance().getPreventXPAfterTeleport()) {
if (Misc.isNPCEntity(player) || !Config.getInstance().getPreventXPAfterTeleport() || event.getFrom().equals(event.getTo())) {
return;
}