Permalink
Browse files

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

This reverts commit ca51b2f.
  • Loading branch information...
1 parent 1f25b0b commit 6fbfec48b0589445a602eeb5f93fa35934832509 @TfT-02 TfT-02 committed Mar 27, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/gmail/nossr50/runnables/party/PartyAutoKickTask.java
View
4 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 @@ private void updatePartyMembers() {
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);
}

0 comments on commit 6fbfec4

Please sign in to comment.