Skip to content

Commit 7cb7968

Browse files
committed
Update APPlayState.hx
1 parent 3da86e4 commit 7cb7968

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

source/archipelago/APPlayState.hx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,24 @@ class APPlayState extends PlayState {
14961496
{
14971497
super.generateSong();
14981498
if (PlayState.SONG == null) return;
1499-
archipelago.APNote.replaceNotes(unspawnNotes, apGame.excludeCheckedLocations(apGame.noteData(PlayState.SONG.song, currentMod)));
1499+
var apNotes = archipelago.APNote.replaceNotes(unspawnNotes, apGame.excludeCheckedLocations(apGame.noteData(PlayState.SONG.song, currentMod)));
1500+
for (playfield in playfields) {
1501+
for (column in playfield.noteQueue)
1502+
for (note in column)
1503+
{
1504+
if (!unspawnNotes.contains(note))
1505+
{playfield.unqueue(note);}
1506+
1507+
for (note in apNotes) {
1508+
if (note.field == playfield) {
1509+
playfield.queue(note);
1510+
note.field = playfield;
1511+
note.fieldIndex = playfield.playerId;
1512+
}
1513+
}
1514+
}
1515+
}
1516+
15001517
}
15011518

15021519
// override public function generateNotes(song:SwagSong, AI:Array<Array<Float>>):Void

0 commit comments

Comments
 (0)