Add platform string for game session

This commit is contained in:
Melledy
2025-12-13 00:14:07 -08:00
parent 968880c320
commit 1aa2129bba
3 changed files with 17 additions and 2 deletions
@@ -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);