Skip to content

Commit

Permalink
Fixes #231
Browse files Browse the repository at this point in the history
It should return previous level instead of current one.
  • Loading branch information
BONNe committed May 7, 2020
1 parent 67971e4 commit ce6aa4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@ public ChallengeLevel getLatestUnlockedLevel(User user, World world)
lastStatus = statusIterator.next();
}

return lastStatus != null ? lastStatus.getLevel() : null;
return lastStatus != null ? lastStatus.getPreviousLevel() : null;
}


Expand Down

0 comments on commit ce6aa4e

Please sign in to comment.