mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-01 18:36:49 +00:00
Fix QUEST_CONTENT_LEAVE_SCENE (#2262)
This commit is contained in:
parent
d62394e35e
commit
f725d9203d
@ -12,6 +12,6 @@ public class ContentLeaveScene extends BaseContent {
|
|||||||
@Override
|
@Override
|
||||||
public boolean execute(
|
public boolean execute(
|
||||||
GameQuest quest, QuestData.QuestContentCondition condition, String paramStr, int... params) {
|
GameQuest quest, QuestData.QuestContentCondition condition, String paramStr, int... params) {
|
||||||
return quest.getOwner().getScene().getPrevScene() == params[0];
|
return condition.getParam()[0] == params[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,7 @@ public class HandlerPostEnterSceneReq extends PacketHandler {
|
|||||||
if (dungeonManager != null) dungeonManager.startDungeon();
|
if (dungeonManager != null) dungeonManager.startDungeon();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
questManager.queueEvent(QuestContent.QUEST_CONTENT_LEAVE_SCENE, scene.getPrevScene());
|
||||||
|
|
||||||
session.send(new PacketPostEnterSceneRsp(session.getPlayer()));
|
session.send(new PacketPostEnterSceneRsp(session.getPlayer()));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user