aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/cowtipper/cowlection/handler/FriendsHandler.java
diff options
context:
space:
mode:
authorCow <cow@volloeko.de>2022-10-14 13:52:10 +0200
committerCow <cow@volloeko.de>2022-10-14 13:52:10 +0200
commitb0f173a72689c26c2ed9d35a27fe18215a38e709 (patch)
tree23c8d0cce7c58513ac1cf2b1005bf145a75ae043 /src/main/java/de/cowtipper/cowlection/handler/FriendsHandler.java
parenta71f878644e48189b064a59864ee6c32a64bbed8 (diff)
downloadCowlection-b0f173a72689c26c2ed9d35a27fe18215a38e709.tar.gz
Cowlection-b0f173a72689c26c2ed9d35a27fe18215a38e709.tar.bz2
Cowlection-b0f173a72689c26c2ed9d35a27fe18215a38e709.zip
Fixed long-term offline players being displayed in `/moo online`
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/handler/FriendsHandler.java')
-rw-r--r--src/main/java/de/cowtipper/cowlection/handler/FriendsHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/handler/FriendsHandler.java b/src/main/java/de/cowtipper/cowlection/handler/FriendsHandler.java
index c2c6837..9034b17 100644
--- a/src/main/java/de/cowtipper/cowlection/handler/FriendsHandler.java
+++ b/src/main/java/de/cowtipper/cowlection/handler/FriendsHandler.java
@@ -161,7 +161,7 @@ public class FriendsHandler {
for (Friend bestFriend : bestFriends) {
bestFriendOnlineStatusQueue.incrementAndGet();
ApiUtils.fetchHyPlayerDetails(bestFriend, hyPlayerData -> {
- if (hyPlayerData != null && hyPlayerData.getLastLogin() > hyPlayerData.getLastLogout()) {
+ if (hyPlayerData != null && !hyPlayerData.hasNeverLoggedOut() && hyPlayerData.getLastLogin() > hyPlayerData.getLastLogout()) {
// online & not hiding their online status
main.getPlayerCache().addBestFriend(bestFriend.getName());