Fix #57 again
This commit is contained in:
parent
48d5add08b
commit
0d77a9745e
@ -274,9 +274,6 @@ public class AsynchronousLogin implements AsynchronousProcess {
|
|||||||
auth.setRealName(player.getName());
|
auth.setRealName(player.getName());
|
||||||
auth.setLastLogin(System.currentTimeMillis());
|
auth.setLastLogin(System.currentTimeMillis());
|
||||||
auth.setLastIp(ip);
|
auth.setLastIp(ip);
|
||||||
if (isFirstLogin) {
|
|
||||||
auth.setQuitLocation(player.getLocation());
|
|
||||||
}
|
|
||||||
dataSource.updateSession(auth);
|
dataSource.updateSession(auth);
|
||||||
|
|
||||||
// TODO: send an update when a messaging service will be implemented (SESSION)
|
// TODO: send an update when a messaging service will be implemented (SESSION)
|
||||||
|
|||||||
@ -86,6 +86,9 @@ public class ProcessSyncPlayerLogin implements SynchronousProcess {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final PlayerAuth auth = playerCache.getAuth(name);
|
final PlayerAuth auth = playerCache.getAuth(name);
|
||||||
|
if (isFirstLogin) {
|
||||||
|
auth.setQuitLocation(player.getLocation());
|
||||||
|
}
|
||||||
teleportationService.teleportOnLogin(player, auth, limbo);
|
teleportationService.teleportOnLogin(player, auth, limbo);
|
||||||
|
|
||||||
// We can now display the join message (if delayed)
|
// We can now display the join message (if delayed)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user