mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-12-29 04:18:05 +01:00
Fixed test failures.
This commit is contained in:
parent
aff6fcec22
commit
10d8352f1c
@ -637,7 +637,7 @@ public class TryToComplete
|
||||
private ChallengeResult checkIfCanCompleteChallenge(int maxTimes)
|
||||
{
|
||||
ChallengeResult result;
|
||||
|
||||
|
||||
ChallengeType type = this.challenge.getChallengeType();
|
||||
// Check the world
|
||||
if (!this.challenge.isDeployed())
|
||||
|
@ -176,6 +176,7 @@ public class TryToCompleteTest {
|
||||
Optional<GameModeAddon> optionalGameMode = Optional.of(gameMode);
|
||||
when(iwm.getAddon(any())).thenReturn(optionalGameMode);
|
||||
when(iwm.getIslandDistance(any())).thenReturn(400);
|
||||
when(iwm.inWorld(any(World.class))).thenReturn(true);
|
||||
|
||||
// Island Manager
|
||||
when(addon.getIslands()).thenReturn(im);
|
||||
|
Loading…
Reference in New Issue
Block a user