mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Add platform string for game session
This commit is contained in:
1 parent
968880c320
commit
1aa2129bba
3 files changed
+17
-2
No files matched your search
@@ -50,6 +50,9 @@ public class HandlerPlayerLoginReq extends NetHandler {
|
||||
var banInfo = banModule.getPlayerBanInfo(session.getPlayer().getUid());
|
||||
return session.encodeMsg(NetMsgId.player_login_failed_ack, banInfo.toProto());
|
||||
}
|
||||
|
||||
// Set platform
|
||||
session.setPlatform(req.getPlatformValue());
|
||||
|
||||
// Regenerate session token because we are switching encrpytion method
|
||||
Nebula.getGameContext().generateSessionToken(session);
|
||||
|
||||
Reference in new issue
Block a user