Fix return to ascension

This commit is contained in:
Melledy committed 2025-12-25 17:29:43 -08:00
1 parent 957d3a9ac3
commit fba1dfccd6
7 files changed
+66

No files matched your search

@@ -0,0 +1,24 @@
package emu.nebula.server.handlers;
import emu.nebula.net.NetHandler;
import emu.nebula.net.NetMsgId;
import emu.nebula.net.HandlerId;
import emu.nebula.net.GameSession;
@HandlerId(NetMsgId.star_tower_info_req)
public class HandlerStarTowerInfoReq extends NetHandler {
@Override
public byte[] handle(GameSession session, byte[] message) throws Exception {
// Get star tower game
var game = session.getPlayer().getStarTowerManager().getGame();
if (game == null) {
return session.encodeMsg(NetMsgId.star_tower_info_failed_ack);
}
// Encode and send
return session.encodeMsg(NetMsgId.star_tower_info_succeed_ack, game.toProto());
}
}