mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Fix return to ascension
This commit is contained in:
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());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user