Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

This reverts commit ca51b2f.
  • Loading branch information...
commit 6fbfec48b0589445a602eeb5f93fa35934832509 1 parent 1f25b0b
TfT_02 TfT-02 authored
4 src/main/java/com/gmail/nossr50/runnables/party/PartyAutoKickTask.java
View
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.