From 6fbfec48b0589445a602eeb5f93fa35934832509 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Wed, 27 Mar 2013 20:44:44 +0100 Subject: [PATCH] Revert "Deal with the ConcurrentModification issue. Fixes #873" This reverts commit ca51b2f. --- .../com/gmail/nossr50/runnables/party/PartyAutoKickTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/runnables/party/PartyAutoKickTask.java b/src/main/java/com/gmail/nossr50/runnables/party/PartyAutoKickTask.java index 8a64940b9..8bb1d78f8 100644 --- a/src/main/java/com/gmail/nossr50/runnables/party/PartyAutoKickTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/party/PartyAutoKickTask.java @@ -1,6 +1,5 @@ package com.gmail.nossr50.runnables.party; -import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.Map.Entry; @@ -27,7 +26,8 @@ public class PartyAutoKickTask extends BukkitRunnable { for (Iterator partyIterator = PartyManager.getParties().iterator(); partyIterator.hasNext();) { Party party = partyIterator.next(); - for (OfflinePlayer member : new ArrayList(party.getMembers())) { + for (Iterator memberIterator = party.getMembers().iterator(); memberIterator.hasNext();) { + OfflinePlayer member = memberIterator.next(); if (currentTime - member.getLastPlayed() > kickTime) { toRemove.put(member, party); }