Refactor gacha banner proto creation to not do a lookup on the database

This commit is contained in:
Melledy
2022-06-16 08:18:24 -07:00
parent 2624f48a84
commit 359e83596c
4 changed files with 14 additions and 50 deletions

View File

@@ -14,10 +14,7 @@ public class HandlerGetGachaInfoReq extends PacketHandler {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
session.send(new PacketGetGachaInfoRsp(session.getServer().getGachaManager(),
// TODO: use other Nonce/key insteadof session key to ensure the overall security for the player
session.getPlayer().getAccount().getSessionKey())
);
session.send(new PacketGetGachaInfoRsp(session.getServer().getGachaManager(), session.getPlayer()));
}
}