summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <md_5@bigpond.com>2012-04-18 07:33:37 +1000
committermd_5 <md_5@bigpond.com>2012-04-24 17:44:49 +1000
commit9a358a8b0f2154efd610dad1d53d6b265a1d29f0 (patch)
tree7ea7bc16eaf176f78e881c91e086d3fd19b3ea2a
parent7fc0d08ffc2dfedbb730de40d36d680e47eb4a01 (diff)
downloadEssentials-9a358a8b0f2154efd610dad1d53d6b265a1d29f0.tar
Essentials-9a358a8b0f2154efd610dad1d53d6b265a1d29f0.tar.gz
Essentials-9a358a8b0f2154efd610dad1d53d6b265a1d29f0.tar.lz
Essentials-9a358a8b0f2154efd610dad1d53d6b265a1d29f0.tar.xz
Essentials-9a358a8b0f2154efd610dad1d53d6b265a1d29f0.zip
Use a quick (and working comparer)
-rw-r--r--Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
index ef2be0f33..81f0e0219 100644
--- a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
+++ b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
@@ -14,7 +14,6 @@ import java.util.logging.Level;
import java.util.logging.Logger;
import org.bukkit.Location;
import org.bukkit.Material;
-import org.bukkit.Server;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
@@ -104,7 +103,7 @@ public class EssentialsPlayerListener implements Listener
}
final Location afk = user.getAfkPosition();
- if (afk == null || !event.getTo().getWorld().equals(afk.getWorld()) || afk.distanceSquared(event.getTo()) > 9)
+ if (afk == null || event.getTo().getWorld() != afk.getWorld() || afk.distanceSquared(event.getTo()) > 9)
{
user.updateActivity(true);
}