From d11226d5042032513f46a08160a92994d37235d6 Mon Sep 17 00:00:00 2001 From: BONNe Date: Thu, 7 May 2020 00:19:21 +0300 Subject: [PATCH] Fixes #231 Logic issue. --- src/main/java/world/bentobox/challenges/ChallengesManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/challenges/ChallengesManager.java b/src/main/java/world/bentobox/challenges/ChallengesManager.java index 26e7653..7dae64d 100644 --- a/src/main/java/world/bentobox/challenges/ChallengesManager.java +++ b/src/main/java/world/bentobox/challenges/ChallengesManager.java @@ -1526,7 +1526,7 @@ public class ChallengesManager LevelStatus lastStatus = null; for (Iterator statusIterator = this.getAllChallengeLevelStatus(user, world).iterator(); - statusIterator.hasNext() && (lastStatus == null || !lastStatus.isUnlocked());) + statusIterator.hasNext() && (lastStatus == null || lastStatus.isUnlocked());) { lastStatus = statusIterator.next(); }