Skip to content

Commit

Permalink
Fix issue when uncompleted challenge was creating description as comp…
Browse files Browse the repository at this point in the history
…leted.
  • Loading branch information
BONNe committed Feb 12, 2019
1 parent d33a763 commit 6c3c097
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/world/bentobox/challenges/panel/CommonGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ protected List<String> generateChallengeDescription(Challenge challenge, Player
manager.getChallengeTimes(this.user, challenge) :
isCompletedOnce ? 0 : 1;
boolean isCompletedAll = isCompletedOnce && challenge.isRepeatable() &&
challenge.getMaxTimes() > 0 && doneTimes < challenge.getMaxTimes();
challenge.getMaxTimes() > 0 && doneTimes >= challenge.getMaxTimes();

// Used to know if blocks, entities, items should be added after requirements and rewards.
char prevChar = ' ';
Expand Down Expand Up @@ -800,6 +800,5 @@ protected List<String> generateLevelDescription(ChallengeLevel level, Player use

return result;
}

}

0 comments on commit 6c3c097

Please sign in to comment.