mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-07 17:28:03 +08:00
Fixes #315 (At least this instance of this bug)
This commit is contained in:
parent
e617ae689f
commit
ef5ecad9c8
@ -30,7 +30,6 @@ import org.apache.commons.lang3.StringUtils;
|
||||
import java.io.Serializable;
|
||||
import java.sql.SQLException;
|
||||
import java.util.*;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
@ -259,7 +258,9 @@ public class Analysis {
|
||||
}
|
||||
}
|
||||
|
||||
Map<UUID, UserInfo> mappedUserInfo = userInfo.stream().collect(Collectors.toMap(UserInfo::getUuid, Function.identity()));
|
||||
Map<UUID, UserInfo> mappedUserInfo = new HashMap<>();
|
||||
userInfo.forEach(u -> mappedUserInfo.put(u.getUuid(), u));
|
||||
|
||||
Map<UUID, Long> lastSeen = db.getSessionsTable().getLastSeenForAllPlayers();
|
||||
for (Map.Entry<UUID, Long> entry : lastSeen.entrySet()) {
|
||||
UserInfo user = mappedUserInfo.get(entry.getKey());
|
||||
|
Loading…
Reference in New Issue
Block a user