From 72c4842213ee1f533dfb999d5087727ae240e266 Mon Sep 17 00:00:00 2001 From: Vigers Ray Date: Sat, 24 Jan 2026 00:49:52 +0100 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0?= =?UTF-8?q?=20=D0=BD=D0=B0=20=D0=B2=D0=B0=D0=BB=D0=B8=D0=B4=D0=BD=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D1=8C=20EntityUid=20=D0=B2=20DontSellingGridSystem?= =?UTF-8?q?s=20=D0=B4=D0=BB=D1=8F=20=D0=BF=D1=80=D0=B5=D0=B4=D0=BE=D1=82?= =?UTF-8?q?=D0=B2=D1=80=D0=B0=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BE=D0=B1?= =?UTF-8?q?=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA=D0=B8=20=D0=BD=D0=B5=D0=B4?= =?UTF-8?q?=D0=B5=D0=B9=D1=81=D1=82=D0=B2=D0=B8=D1=82=D0=B5=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D1=8B=D1=85=20=D0=BE=D0=B1=D1=8A=D0=B5=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D0=B2.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_Sunrise/DontSellingGrid/DontSellingGridSystems.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Content.Server/_Sunrise/DontSellingGrid/DontSellingGridSystems.cs b/Content.Server/_Sunrise/DontSellingGrid/DontSellingGridSystems.cs index df1cca5bdd..0d389e9a3b 100644 --- a/Content.Server/_Sunrise/DontSellingGrid/DontSellingGridSystems.cs +++ b/Content.Server/_Sunrise/DontSellingGrid/DontSellingGridSystems.cs @@ -72,6 +72,9 @@ public sealed class StationDontSellingSystems : EntitySystem private void DepreciatePrice(EntityUid uid) { + if (!uid.IsValid()) + return; + EnsureComp(uid); if (!_containerQuery.TryComp(uid, out var containers)) @@ -81,7 +84,8 @@ public sealed class StationDontSellingSystems : EntitySystem { foreach (var ent in container.ContainedEntities) { - DepreciatePrice(ent); + if (ent.IsValid()) + DepreciatePrice(ent); } } }