1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-12-10 05:59:15 +00:00

Skip processing dead notes

This commit is contained in:
Hyper_ 2025-10-23 15:27:43 -03:00
parent 758f712eb5
commit 91a9655ff1

View file

@ -2700,7 +2700,7 @@ class PlayState extends MusicBeatSubState
// Process notes on the opponent's side. // Process notes on the opponent's side.
for (note in opponentStrumline.notes.members) for (note in opponentStrumline.notes.members)
{ {
if (note == null) continue; if (note == null || !note.alive) continue;
var r = GRhythmUtil.processWindow(note, false); var r = GRhythmUtil.processWindow(note, false);
if (r.botplayHit) if (r.botplayHit)
{ {
@ -2750,7 +2750,7 @@ class PlayState extends MusicBeatSubState
// Process notes on the player's side. // Process notes on the player's side.
for (note in playerStrumline.notes.members) for (note in playerStrumline.notes.members)
{ {
if (note == null) continue; if (note == null || !note.alive) continue;
var r = GRhythmUtil.processWindow(note, !isBotPlayMode); var r = GRhythmUtil.processWindow(note, !isBotPlayMode);
if (r.botplayHit) if (r.botplayHit)
{ {