Revert "Deal with the ConcurrentModification issue. Fixes #873"

This reverts commit ca51b2f.
This commit is contained in:
TfT_02 2013-03-27 20:44:44 +01:00
parent 1f25b0b00b
commit 6fbfec48b0

View File

@ -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<Party> partyIterator = PartyManager.getParties().iterator(); partyIterator.hasNext();) {
Party party = partyIterator.next();
for (OfflinePlayer member : new ArrayList<OfflinePlayer>(party.getMembers())) {
for (Iterator<OfflinePlayer> memberIterator = party.getMembers().iterator(); memberIterator.hasNext();) {
OfflinePlayer member = memberIterator.next();
if (currentTime - member.getLastPlayed() > kickTime) {
toRemove.put(member, party);
}