mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-22 01:59:56 +08:00
various small bug fixes (#2270)
* various small bug fixes * Upgrade warning to error * A few more state changes to match the others in this pull
This commit is contained in:
committed by
GitHub
Unverified
parent
fe169398ec
commit
47971dc931
@@ -12,12 +12,12 @@ public class ContentQuestStateNotEqual extends BaseContent {
|
||||
@Override
|
||||
public boolean execute(
|
||||
GameQuest quest, QuestData.QuestContentCondition condition, String paramStr, int... params) {
|
||||
GameQuest checkQuest = quest.getOwner().getQuestManager().getQuestById(params[0]);
|
||||
GameQuest checkQuest = quest.getOwner().getQuestManager().getQuestById(condition.getParam()[0]);
|
||||
|
||||
if (checkQuest != null) {
|
||||
return checkQuest.getState().getValue() != params[1];
|
||||
if (checkQuest == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
return checkQuest.getState().getValue() != condition.getParam()[1];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user