Skip to content

Commit

Permalink
repair a bug:when player toggle off midi monitor it still gen particl…
Browse files Browse the repository at this point in the history
…es under player.
  • Loading branch information
BillGoldenWater committed Jul 29, 2020
1 parent 4608377 commit 12487d9
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,11 @@ public void run() {
}
}

NoteParticle noteParticle = new NoteParticle(noteLocation);
noteParticle.start(MidiPlayer.getInstance(),50,1);
PlayingNoteParticles.playingNoteParticles.add(noteParticle);
if(useDisplayFunction) {
NoteParticle noteParticle = new NoteParticle(noteLocation);
noteParticle.start(MidiPlayer.getInstance(), 50, 1);
PlayingNoteParticles.playingNoteParticles.add(noteParticle);
}

} else {
targetPlayer.sendMessage("Invalid musical instrument:" + musicalInstrument);
Expand Down

0 comments on commit 12487d9

Please sign in to comment.