aboutsummaryrefslogtreecommitdiff
path: root/src/gui/LevelSurround.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/LevelSurround.java')
-rw-r--r--src/gui/LevelSurround.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gui/LevelSurround.java b/src/gui/LevelSurround.java
index d5dcd33..c89ef6d 100644
--- a/src/gui/LevelSurround.java
+++ b/src/gui/LevelSurround.java
@@ -35,11 +35,8 @@ public class LevelSurround extends Pane
exit.setText("Back");
exit.setOnAction(e -> {
Driver.setMenu(prev);
- try {
- game.cancel();
- } catch (UnsupportedAudioFileException | IOException | LineUnavailableException e1) {
- e1.printStackTrace();
- }
+ Driver.menuFx.play("src/assets/MenuBackward.wav");
+ game.cancel();
});
Button pause = new Button();