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

This commit is contained in:
zwu18
2017-10-12 23:50:56 +13:00
parent 0b718f4f57
commit 9b9c3dfdaa
@@ -138,7 +138,9 @@ public class RaceFinishController extends Controller {
public void mainMenuPressed() throws IOException { public void mainMenuPressed() throws IOException {
AudioClip sound = new AudioClip(this.getClass().getResource("/visualiser/sounds/buttonpress.wav").toExternalForm()); AudioClip sound = new AudioClip(this.getClass().getResource("/visualiser/sounds/buttonpress.wav").toExternalForm());
sound.play(); sound.play();
App.game.endEvent(); try {
App.game.endEvent();
} catch (Exception e){};
loadTitleScreen(); loadTitleScreen();
} }