Fixed AFKTracker not tracking afk time correctly

This commit is contained in:
Rsl1122 2018-04-06 10:41:28 +03:00
parent 8922541191
commit 8c38d5e13c

View File

@ -27,7 +27,7 @@ public class AFKTracker {
public void performedAction(UUID uuid, long time) {
Long lastMoved = lastMovement.getOrDefault(uuid, time);
lastMovement.put(uuid, lastMoved);
lastMovement.put(uuid, time);
if (time - lastMoved < afkThresholdMs) {
// Threshold not crossed, no action required.