mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Revert "Deal with the ConcurrentModification issue. Fixes #873"
This reverts commit ca51b2f
.
This commit is contained in:
parent
1f25b0b00b
commit
6fbfec48b0
@ -1,6 +1,5 @@
|
|||||||
package com.gmail.nossr50.runnables.party;
|
package com.gmail.nossr50.runnables.party;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
@ -27,7 +26,8 @@ public class PartyAutoKickTask extends BukkitRunnable {
|
|||||||
for (Iterator<Party> partyIterator = PartyManager.getParties().iterator(); partyIterator.hasNext();) {
|
for (Iterator<Party> partyIterator = PartyManager.getParties().iterator(); partyIterator.hasNext();) {
|
||||||
Party party = partyIterator.next();
|
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) {
|
if (currentTime - member.getLastPlayed() > kickTime) {
|
||||||
toRemove.put(member, party);
|
toRemove.put(member, party);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user