mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Refactor how handlers encode messages
This commit is contained in:
1 parent
00b77e80e1
commit
da1856df50
73 files changed
+138
-134
No files matched your search
@@ -20,7 +20,7 @@ public class HandlerDailyInstanceSettleReq extends NetHandler {
|
||||
// Get boss level data
|
||||
var data = GameData.getDailyInstanceDataTable().get(player.getInstanceManager().getCurInstanceId());
|
||||
if (data == null || !data.hasEnergy(player)) {
|
||||
return this.encodeMsg(NetMsgId.daily_instance_settle_failed_ack);
|
||||
return session.encodeMsg(NetMsgId.daily_instance_settle_failed_ack);
|
||||
}
|
||||
|
||||
// Parse request
|
||||
@@ -53,7 +53,7 @@ public class HandlerDailyInstanceSettleReq extends NetHandler {
|
||||
}
|
||||
|
||||
// Send response
|
||||
return this.encodeMsg(NetMsgId.daily_instance_settle_succeed_ack, rsp);
|
||||
return session.encodeMsg(NetMsgId.daily_instance_settle_succeed_ack, rsp);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user