mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-20 01:29:54 +02:00
Add platform string for game session
This commit is contained in:
@@ -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