From 7a7afb82b1ca8878ae066f9b811ad4d8910d654a Mon Sep 17 00:00:00 2001 From: sowgro Date: Thu, 8 Jun 2023 23:52:32 -0400 Subject: small improvement to level validation --- src/devmenu/NotesEditor.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/devmenu/NotesEditor.java') diff --git a/src/devmenu/NotesEditor.java b/src/devmenu/NotesEditor.java index 269bf84..2ac0c88 100644 --- a/src/devmenu/NotesEditor.java +++ b/src/devmenu/NotesEditor.java @@ -85,15 +85,17 @@ public class NotesEditor private void stop() { - try { - Driver.soundController.endSong(); - diff.numBeats = (int)timer.time(); - timer = null; - writer.close(); - help.setText(t1); + try + { + Driver.soundController.endSong(); + diff.numBeats = (int)timer.time(); + timer = null; + writer.close(); + help.setText(t1); } catch (Exception e) { + //System.err.println("tried to stop but already stopped"); } } } \ No newline at end of file -- cgit v1.2.3