From 490bc195d8e613513639b23b25b904ef3834ecc8 Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 23 Aug 2013 08:58:23 -0400 Subject: [PATCH] We don't care about teleports to the same spot. --- src/main/java/com/gmail/nossr50/listeners/PlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index 2c283f58f..b81a82d56 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -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; }