This makes it easier to read

This commit is contained in:
TfT_02 2013-04-13 01:11:26 +02:00
parent 682c2631f0
commit 062a3028f4

View File

@ -191,8 +191,9 @@ public final class PartyManager {
public static void removeFromParty(OfflinePlayer player, Party party) { public static void removeFromParty(OfflinePlayer player, Party party) {
List<String> members = party.getMembers(); List<String> members = party.getMembers();
while (members.remove(player.getName())) { while (members.contains(player.getName())) {
// Remove all the duplicates as well // Remove all the duplicates as well
members.remove(player.getName());
} }
if (members.isEmpty()) { if (members.isEmpty()) {