Skip to content

Commit 32ce28e

Browse files
CyanoureKrakenied
authored andcommitted
Fix EssentialsMoneyEarnTaskType comparison
1 parent e3d434f commit 32ce28e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/dependent/EssentialsMoneyEarnTaskType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void onUserBalanceUpdate(UserBalanceUpdateEvent event) {
6666

6767
int earningsNeeded = (int) task.getConfigValue("amount");
6868
BigDecimal amount = BigDecimal.valueOf(earningsNeeded);
69-
if (newProgress.compareTo(amount) > 0) {
69+
if (newProgress.compareTo(amount) >= 0) {
7070
super.debug("Marking task as complete", quest.getId(), task.getId(), player.getUniqueId());
7171
taskProgress.setCompleted(true);
7272
}

0 commit comments

Comments
 (0)