From 093257280bd7ea71516553d825aa581f598da570 Mon Sep 17 00:00:00 2001 From: B_Kirill <153602297+B-Kirill@users.noreply.github.com> Date: Tue, 27 Jan 2026 01:52:56 +1000 Subject: [PATCH] Fix InstrumentSystem.Update exception when deleting band lead (#42331) --- Content.Server/Instruments/InstrumentSystem.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Content.Server/Instruments/InstrumentSystem.cs b/Content.Server/Instruments/InstrumentSystem.cs index 56b64576cad..c7b888114e5 100644 --- a/Content.Server/Instruments/InstrumentSystem.cs +++ b/Content.Server/Instruments/InstrumentSystem.cs @@ -438,20 +438,22 @@ public sealed partial class InstrumentSystem : SharedInstrumentSystem if (Deleted(master)) { Clean(uid, instrument); + continue; } var masterActive = activeQuery.CompOrNull(master); if (masterActive == null) { Clean(uid, instrument); + continue; } var trans = transformQuery.GetComponent(uid); var masterTrans = transformQuery.GetComponent(master); - if (!_transform.InRange(masterTrans.Coordinates, trans.Coordinates, 10f) -) + if (!_transform.InRange(masterTrans.Coordinates, trans.Coordinates, 10f)) { Clean(uid, instrument); + continue; } }