check for edit mode to determine if judgement should be done.

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
Nic0Nic0Nii 3 years ago
parent 9d522eeca4
commit 3fd0bbb21f
  1. 4
      LLSIG/src/main/java/LLSIG/LLSIG.java

@ -142,11 +142,11 @@ public class LLSIG implements KeyListener{
case KeyEvent.VK_P:{if (LLSIG.game.PLAYING&&musicPlayer.isPaused()) {musicPlayer.resume();} else {musicPlayer.pause();}}break;
case KeyEvent.VK_Q:{if (LLSIG.game.PLAYING) {musicPlayer.pause();SaveSongData(song,lanes);}}break;
}
if (LLSIG.game.PLAYING&&lane!=-1) {
if (LLSIG.game.PLAYING&&lane!=-1&&EDITMODE) {
LLSIG.game.lanes.get(lane).addNote(new Note(NoteType.NORMAL,musicPlayer.getPlayPosition()));
}
if (lane!=-1) {
if (PLAYING) {
if (PLAYING&&!EDITMODE) {
Lane l = lanes.get(lane);
if (l.noteExists()) {
Note n = l.getNote();

Loading…
Cancel
Save