diff --git a/Content.Client/Instruments/InstrumentComponent.cs b/Content.Client/Instruments/InstrumentComponent.cs index d864f5e8ea..66f5ddd458 100644 --- a/Content.Client/Instruments/InstrumentComponent.cs +++ b/Content.Client/Instruments/InstrumentComponent.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using Content.Shared.Instruments; using Content.Shared.Physics; +using Robust.Client; using Robust.Client.Audio.Midi; using Robust.Shared.Audio.Midi; using Robust.Shared.GameObjects; @@ -255,7 +256,7 @@ namespace Content.Client.Instruments _renderer = null; _midiEventBuffer.Clear(); - if (!fromStateChange) + if (!fromStateChange && IoCManager.Resolve().IsConnected) { SendNetworkMessage(new InstrumentStopMidiMessage()); }