Skip to content

Commit

Permalink
Do the same fix for ConditionStateEqual.java
Browse files Browse the repository at this point in the history
  • Loading branch information
scooterboo authored Oct 2, 2023
1 parent 8e80437 commit f385562
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ public boolean execute(
var questStateValue = condition.getParam()[1];
var checkQuest = owner.getQuestManager().getQuestById(questId);

return checkQuest != null && checkQuest.getState().getValue() == questStateValue;
if (checkQuest == null) {
return questStateValue == 0;
}
return checkQuest.getState().getValue() == questStateValue;
}
}

0 comments on commit f385562

Please sign in to comment.