Permalink
Browse files

Even simpler.

  • Loading branch information...
1 parent 6fbfec4 commit 7d8888d47d91cd49a1a0ed270552c41ce0979b89 @gmcferrin gmcferrin committed Mar 27, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/main/java/com/gmail/nossr50/runnables/party/PartyAutoKickTask.java
@@ -26,8 +26,7 @@ private void updatePartyMembers() {
for (Iterator<Party> partyIterator = PartyManager.getParties().iterator(); partyIterator.hasNext();) {
Party party = partyIterator.next();
- for (Iterator<OfflinePlayer> memberIterator = party.getMembers().iterator(); memberIterator.hasNext();) {
- OfflinePlayer member = memberIterator.next();
+ for (OfflinePlayer member : party.getMembers()) {
if (currentTime - member.getLastPlayed() > kickTime) {
toRemove.put(member, party);
}

0 comments on commit 7d8888d

Please sign in to comment.