]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Don't purge note buffer when starting/switching MIDI songs (#39335)
authorHannah Giovanna Dawson <karakkaraz@gmail.com>
Sat, 2 Aug 2025 17:31:46 +0000 (18:31 +0100)
committerGitHub <noreply@github.com>
Sat, 2 Aug 2025 17:31:46 +0000 (19:31 +0200)
Stop stuck notes on remote when changing MIDI song

Content.Client/Instruments/InstrumentSystem.cs

index d861f4163b0c17a81a4367d2d9d46f3a98707564..c01845bb1332604719d397fbb77a0b55b85c4b23 100644 (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;
     }