Fixed problem where non-host cannot return to main menu after finish.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user