Fixed problem where non-host cannot return to main menu after finish.

main
zwu18 8 years ago
parent 0b718f4f57
commit 9b9c3dfdaa

@ -138,7 +138,9 @@ public class RaceFinishController extends Controller {
public void mainMenuPressed() throws IOException {
AudioClip sound = new AudioClip(this.getClass().getResource("/visualiser/sounds/buttonpress.wav").toExternalForm());
sound.play();
App.game.endEvent();
try {
App.game.endEvent();
} catch (Exception e){};
loadTitleScreen();
}

Loading…
Cancel
Save