Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Commit 5ce8112

Browse files
committed
fix: update AFK check to use isAfk() method for player sessions
1 parent 5918860 commit 5ce8112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

surf-cloud-standalone/src/main/kotlin/dev/slne/surf/cloud/standalone/player/CloudPlayerPlaytimeManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class CloudPlayerPlaytimeManager(private val service: CloudPlayerService) : Disp
6464
sessionsCache.put(uuid, newSession)
6565
toCreate += uuid to newSession
6666
} else {
67-
if (player.afk) return@forEach
67+
if (player.isAfk()) return@forEach
6868
// Just increment current session
6969
currentSession.accumulatedSeconds++
7070
}

0 commit comments

Comments
 (0)