From 7d8888d47d91cd49a1a0ed270552c41ce0979b89 Mon Sep 17 00:00:00 2001 From: GJ Date: Wed, 27 Mar 2013 15:56:03 -0400 Subject: [PATCH] Even simpler. --- .../com/gmail/nossr50/runnables/party/PartyAutoKickTask.java | 3 +-- 1 file changed, 1 insertion(+), 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 8bb1d78f8..0b7547f84 100644 --- a/src/main/java/com/gmail/nossr50/runnables/party/PartyAutoKickTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/party/PartyAutoKickTask.java @@ -26,8 +26,7 @@ public class PartyAutoKickTask extends BukkitRunnable { for (Iterator partyIterator = PartyManager.getParties().iterator(); partyIterator.hasNext();) { Party party = partyIterator.next(); - for (Iterator memberIterator = party.getMembers().iterator(); memberIterator.hasNext();) { - OfflinePlayer member = memberIterator.next(); + for (OfflinePlayer member : party.getMembers()) { if (currentTime - member.getLastPlayed() > kickTime) { toRemove.put(member, party); }