diff options
author | md_5 <md_5@bigpond.com> | 2012-06-26 18:13:53 +1000 |
---|---|---|
committer | md_5 <md_5@bigpond.com> | 2012-06-26 18:13:53 +1000 |
commit | 69ff8b28d8a07350349438204fe64593d68cf31f (patch) | |
tree | 3abe8652d516420e25c94f342257122555036be0 | |
parent | 0395b5d222c137b1db664a1f74dd8cca2b4299be (diff) | |
download | Essentials-69ff8b28d8a07350349438204fe64593d68cf31f.tar Essentials-69ff8b28d8a07350349438204fe64593d68cf31f.tar.gz Essentials-69ff8b28d8a07350349438204fe64593d68cf31f.tar.lz Essentials-69ff8b28d8a07350349438204fe64593d68cf31f.tar.xz Essentials-69ff8b28d8a07350349438204fe64593d68cf31f.zip |
Fix issue with cross world local chat.
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java | 9 |
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) { |