diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-06-08 23:52:32 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-06-08 23:52:32 -0400 |
commit | 7a7afb82b1ca8878ae066f9b811ad4d8910d654a (patch) | |
tree | 6f12a01c11045ef0b7b63fc253a767e396281e88 /src/devmenu/NotesEditor.java | |
parent | af36a57384060bd8695b94d3e20d8cd1b3553fe8 (diff) | |
download | NPEhero-7a7afb82b1ca8878ae066f9b811ad4d8910d654a.tar.gz NPEhero-7a7afb82b1ca8878ae066f9b811ad4d8910d654a.tar.bz2 NPEhero-7a7afb82b1ca8878ae066f9b811ad4d8910d654a.zip |
small improvement to level validation
Diffstat (limited to 'src/devmenu/NotesEditor.java')
-rw-r--r-- | src/devmenu/NotesEditor.java | 14 |
1 files changed, 8 insertions, 6 deletions
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 |