From 48d5add08b8da7f4b6ac181a4ee2f15214899145 Mon Sep 17 00:00:00 2001 From: HaHaWTH Date: Mon, 25 Mar 2024 02:50:25 +0800 Subject: [PATCH] Fix #57 --- .../java/fr/xephi/authme/process/login/AsynchronousLogin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/process/login/AsynchronousLogin.java b/src/main/java/fr/xephi/authme/process/login/AsynchronousLogin.java index 4ef46fc8..80ba74c3 100644 --- a/src/main/java/fr/xephi/authme/process/login/AsynchronousLogin.java +++ b/src/main/java/fr/xephi/authme/process/login/AsynchronousLogin.java @@ -274,7 +274,9 @@ public class AsynchronousLogin implements AsynchronousProcess { auth.setRealName(player.getName()); auth.setLastLogin(System.currentTimeMillis()); auth.setLastIp(ip); - auth.setQuitLocation(player.getLocation()); + if (isFirstLogin) { + auth.setQuitLocation(player.getLocation()); + } dataSource.updateSession(auth); // TODO: send an update when a messaging service will be implemented (SESSION)