Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Even simpler.

  • Loading branch information...
commit 7d8888d47d91cd49a1a0ed270552c41ce0979b89 1 parent 6fbfec4
@gmcferrin gmcferrin authored
View
3  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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.