Fixed a bug where the near party member counter was off. Closes #745

This commit is contained in:
TfT_02 2013-02-28 11:28:28 +01:00
parent 8fb8c67148
commit c900edb261

View File

@ -74,7 +74,7 @@ public final class PartyManager {
List<Player> nearMembers = new ArrayList<Player>();
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);
}
}