mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
This makes it easier to read
This commit is contained in:
parent
682c2631f0
commit
062a3028f4
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user