mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-09-28 14:37:29 +02:00
Fix issue when Island and Other type challenges were not marked as completed.
This commit is contained in:
parent
e04ed5fb75
commit
ba5c972e5f
@ -650,6 +650,9 @@ public class TryToComplete
|
|||||||
{
|
{
|
||||||
this.removeBlocks();
|
this.removeBlocks();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if challenge is repeated.
|
||||||
|
result.setRepeat(this.manager.isChallengeComplete(this.user, this.world, this.challenge));
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -844,7 +847,8 @@ public class TryToComplete
|
|||||||
this.user.getPlayer().getTotalExperience() - this.challenge.getRequiredExperience());
|
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;
|
return EMPTY_RESULT;
|
||||||
|
Loading…
Reference in New Issue
Block a user