Fix issue when Island and Other type challenges were not marked as completed.

This commit is contained in:
BONNe 2019-03-05 10:30:58 +02:00
parent e04ed5fb75
commit ba5c972e5f

View File

@ -650,6 +650,9 @@ public class TryToComplete
{
this.removeBlocks();
}
// Check if challenge is repeated.
result.setRepeat(this.manager.isChallengeComplete(this.user, this.world, this.challenge));
}
return result;
@ -844,7 +847,8 @@ public class TryToComplete
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;