Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,10 @@ private void queueFinishColosseum(ChallengeState state) {
private void finishColosseum(ChallengeState state) {
log.debug("Ending Colosseum challenge: {}", state);
stateChangeCooldown = false;
int reported = reportedChallengeTicks;

cleanup();
dispatchEvent(new ChallengeEndEvent(reportedChallengeTicks, -1));

dispatchEvent(new ChallengeEndEvent(reported, -1));
setState(state);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ private void startInferno() {

private void finishInferno(ChallengeState state) {
log.info("Finishing Inferno challenge with state: {}", state);
int reported = reportedChallengeTicks;
cleanup();

dispatchEvent(new ChallengeEndEvent(reportedChallengeTicks, reportedChallengeTicks));
dispatchEvent(new ChallengeEndEvent(reported, reported));
setState(state);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,11 @@ private void startMokhaiotl() {

private void finishMokhaiotl() {
log.info("Finishing Mokhaiotl challenge with state: {}", getState());
cleanup();

dispatchEvent(new ChallengeEndEvent(reportedChallengeTicks, -1));
int reported = reportedChallengeTicks;

cleanup();
dispatchEvent(new ChallengeEndEvent(reported, -1));
setState(ChallengeState.INACTIVE);
}

Expand Down
Loading