From c900edb261b67d1f2f1f493844ddcb162d152a17 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Thu, 28 Feb 2013 11:28:28 +0100 Subject: [PATCH] Fixed a bug where the near party member counter was off. Closes #745 --- src/main/java/com/gmail/nossr50/party/PartyManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/party/PartyManager.java b/src/main/java/com/gmail/nossr50/party/PartyManager.java index 72603d5f8..fabf61c1d 100644 --- a/src/main/java/com/gmail/nossr50/party/PartyManager.java +++ b/src/main/java/com/gmail/nossr50/party/PartyManager.java @@ -74,7 +74,7 @@ public final class PartyManager { List nearMembers = new ArrayList(); if (party != null) { for (Player member : party.getOnlineMembers()) { - if (player != member && Misc.isNear(player.getLocation(), member.getLocation(), range)) { + if (!player.getName().equals(member.getName()) && Misc.isNear(player.getLocation(), member.getLocation(), range)) { nearMembers.add(member); } }