From 062a3028f4397b7a880c98692c0dbb7033d41ea9 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sat, 13 Apr 2013 01:11:26 +0200 Subject: [PATCH] This makes it easier to read --- src/main/java/com/gmail/nossr50/party/PartyManager.java | 3 ++- 1 file changed, 2 insertions(+), 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 17f3fd034..dc013041b 100644 --- a/src/main/java/com/gmail/nossr50/party/PartyManager.java +++ b/src/main/java/com/gmail/nossr50/party/PartyManager.java @@ -191,8 +191,9 @@ public final class PartyManager { public static void removeFromParty(OfflinePlayer player, Party party) { List members = party.getMembers(); - while (members.remove(player.getName())) { + while (members.contains(player.getName())) { // Remove all the duplicates as well + members.remove(player.getName()); } if (members.isEmpty()) {