Skip to content

Commit

Permalink
Fix issue when Island and Other type challenges were not marked as co…
Browse files Browse the repository at this point in the history
…mpleted.
  • Loading branch information
BONNe committed Mar 5, 2019
1 parent e04ed5f commit ba5c972
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,9 @@ private ChallengeResult checkSurrounding()
{
this.removeBlocks();
}

// Check if challenge is repeated.
result.setRepeat(this.manager.isChallengeComplete(this.user, this.world, this.challenge));
}

return result;
Expand Down Expand Up @@ -844,7 +847,8 @@ else if (this.addon.isLevelProvided() &&
this.user.getPlayer().getTotalExperience() - this.challenge.getRequiredExperience());
}

return new ChallengeResult().setMeetsRequirements();
return new ChallengeResult().setMeetsRequirements().
setRepeat(this.manager.isChallengeComplete(this.user, this.world, this.challenge));
}

return EMPTY_RESULT;
Expand Down

0 comments on commit ba5c972

Please sign in to comment.