Skip to content

Commit

Permalink
fix check without cancelConditions
Browse files Browse the repository at this point in the history
  • Loading branch information
TheosRee committed Dec 18, 2024
1 parent 05da80f commit 88d033a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public FolderEvent(final BetonQuest betonQuest, final BetonQuestLogger log, fina
}

private boolean checkCancelConditions(@Nullable final Profile profile) {
return BetonQuest.conditions(profile, cancelConditions);
return cancelConditions.length != 0 && BetonQuest.conditions(profile, cancelConditions);
}

private void executeAllEvents(@Nullable final Profile profile, final Deque<EventID> chosenList) {
Expand Down

0 comments on commit 88d033a

Please sign in to comment.