Fix issue when multiple completions were not saved correctly.

This commit is contained in:
BONNe 2019-08-28 11:50:16 +03:00 committed by BONNe1704
parent 12dd740959
commit 9d7a5db290
1 changed files with 1 additions and 1 deletions

View File

@ -1154,7 +1154,7 @@ public class ChallengesManager
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()).