Skip to content

Commit

Permalink
Fix issue when multiple completions were not saved correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Aug 28, 2019
1 parent 12dd740 commit 9d7a5db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ public void setChallengeComplete(User user, World world, Challenge challenge, in
public void setChallengeComplete(UUID userID, World world, Challenge challenge, int completionCount)
{
String storageID = this.getDataUniqueID(userID, Util.getWorld(world));
this.setChallengeComplete(storageID, challenge.getUniqueId());
this.setChallengeComplete(storageID, challenge.getUniqueId(), completionCount);
this.addLogEntry(storageID, new LogEntry.Builder("COMPLETE").
data("user-id", userID.toString()).
data("challenge-id", challenge.getUniqueId()).
Expand Down

0 comments on commit 9d7a5db

Please sign in to comment.