mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-09 13:53:51 +08:00
fix NPC talk triggering main quest in 46101 (#2158)
Make it so that only talks where the param matches the talkId are checked.
This commit is contained in:
parent
bbd201c90e
commit
9eddd87095
@ -13,6 +13,7 @@ public class ContentCompleteTalk extends BaseContent {
|
||||
public boolean execute(
|
||||
GameQuest quest, QuestData.QuestContentCondition condition, String paramStr, int... params) {
|
||||
val talkId = condition.getParam()[0];
|
||||
if(talkId != params[0]) return false;
|
||||
val checkMainQuest = quest.getOwner().getQuestManager().getMainQuestByTalkId(talkId);
|
||||
if (checkMainQuest == null) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user