mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-30 22:44:08 +01:00
Fix issue when uncompleted challenge was creating description as completed.
This commit is contained in:
parent
d33a763cbe
commit
6c3c097fbb
@ -276,7 +276,7 @@ public abstract class CommonGUI
|
|||||||
manager.getChallengeTimes(this.user, challenge) :
|
manager.getChallengeTimes(this.user, challenge) :
|
||||||
isCompletedOnce ? 0 : 1;
|
isCompletedOnce ? 0 : 1;
|
||||||
boolean isCompletedAll = isCompletedOnce && challenge.isRepeatable() &&
|
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.
|
// Used to know if blocks, entities, items should be added after requirements and rewards.
|
||||||
char prevChar = ' ';
|
char prevChar = ' ';
|
||||||
@ -800,6 +800,5 @@ public abstract class CommonGUI
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user