Don't purge note buffer when starting/switching MIDI songs (#39335)

Stop stuck notes on remote when changing MIDI song
This commit is contained in:
Hannah Giovanna Dawson 2025-08-02 18:31:46 +01:00 committed by GitHub
parent e82dc13bf9
commit 90f4f365df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -294,7 +294,6 @@ public sealed partial class InstrumentSystem : SharedInstrumentSystem
SetMaster(uid, null);
TrySetChannels(uid, data);
instrument.MidiEventBuffer.Clear();
instrument.Renderer.OnMidiEvent += instrument.MidiEventBuffer.Add;
return true;
}