Skip to content

Commit

Permalink
Merge pull request BetonQuest#3078 from TheosRee/folder-fix
Browse files Browse the repository at this point in the history
fix check without cancelConditions in folder event
  • Loading branch information
Wolf2323 authored Dec 18, 2024
2 parents 05da80f + 88d033a commit d901182
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 d901182

Please sign in to comment.