summaryrefslogtreecommitdiffstats
path: root/EssentialsChat/src
diff options
context:
space:
mode:
authormd_5 <md_5@bigpond.com>2012-06-26 18:13:53 +1000
committermd_5 <md_5@bigpond.com>2012-06-26 18:13:53 +1000
commitc802f19f5357ed8dd7a0c434508e877e902ad806 (patch)
tree24fa77aa1cc7fba8a46cafd5ee36f185828e966a /EssentialsChat/src
parent3d53212b9b7a930fb8ed22d386894da07021c05d (diff)
downloadEssentials-c802f19f5357ed8dd7a0c434508e877e902ad806.tar
Essentials-c802f19f5357ed8dd7a0c434508e877e902ad806.tar.gz
Essentials-c802f19f5357ed8dd7a0c434508e877e902ad806.tar.lz
Essentials-c802f19f5357ed8dd7a0c434508e877e902ad806.tar.xz
Essentials-c802f19f5357ed8dd7a0c434508e877e902ad806.zip
Fix issue with cross world local chat.
Diffstat (limited to 'EssentialsChat/src')
-rw-r--r--EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
index 58b094793..052479aed 100644
--- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
+++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
@@ -133,10 +133,13 @@ public abstract class EssentialsChatPlayer implements Listener
{
abort = true;
}
- final double delta = playerLoc.distanceSquared(loc);
- if (delta > chatStore.getRadius())
+ else
{
- abort = true;
+ final double delta = playerLoc.distanceSquared(loc);
+ if (delta > chatStore.getRadius())
+ {
+ abort = true;
+ }
}
if (abort)
{