From 88d033ad5d0a40e0081e549a01295b702584ce3d Mon Sep 17 00:00:00 2001 From: TheosRee Date: Wed, 18 Dec 2024 21:19:42 +0100 Subject: [PATCH] fix check without cancelConditions --- .../betonquest/betonquest/quest/event/folder/FolderEvent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/betonquest/betonquest/quest/event/folder/FolderEvent.java b/src/main/java/org/betonquest/betonquest/quest/event/folder/FolderEvent.java index d47ad49cb0..5bdd2d6f86 100644 --- a/src/main/java/org/betonquest/betonquest/quest/event/folder/FolderEvent.java +++ b/src/main/java/org/betonquest/betonquest/quest/event/folder/FolderEvent.java @@ -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 chosenList) {