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 {
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user