mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 19:46:30 +00:00
Parse dungeon entry info req from payload instead of player scene (#2122)
This commit is contained in:
parent
b302c2b73b
commit
abcabc9861
@ -26,8 +26,8 @@ public class DungeonSystem extends BaseGameSystem {
|
|||||||
super(server);
|
super(server);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void getEntryInfo(Player player, int pointId) {
|
public void getEntryInfo(Player player, int pointId, int sceneId) {
|
||||||
ScenePointEntry entry = GameData.getScenePointEntryById(player.getScene().getId(), pointId);
|
ScenePointEntry entry = GameData.getScenePointEntryById(sceneId, pointId);
|
||||||
|
|
||||||
if (entry == null) {
|
if (entry == null) {
|
||||||
// Error
|
// Error
|
||||||
|
@ -13,7 +13,7 @@ public class HandlerDungeonEntryInfoReq extends PacketHandler {
|
|||||||
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
|
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
|
||||||
DungeonEntryInfoReq req = DungeonEntryInfoReq.parseFrom(payload);
|
DungeonEntryInfoReq req = DungeonEntryInfoReq.parseFrom(payload);
|
||||||
|
|
||||||
session.getServer().getDungeonSystem().getEntryInfo(session.getPlayer(), req.getPointId());
|
session.getServer().getDungeonSystem().getEntryInfo(session.getPlayer(), req.getPointId(), req.getSceneId());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user