From 8c73cfb06d756f3b0ecdca37aed42b99d9475e6f Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Mon, 31 Oct 2022 18:07:00 +1300 Subject: [PATCH] Stop unnecessary airtight updates (#12310) --- Content.Server/Atmos/EntitySystems/AirtightSystem.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Server/Atmos/EntitySystems/AirtightSystem.cs b/Content.Server/Atmos/EntitySystems/AirtightSystem.cs index 99054cd2d0..b42e8d6a8a 100644 --- a/Content.Server/Atmos/EntitySystems/AirtightSystem.cs +++ b/Content.Server/Atmos/EntitySystems/AirtightSystem.cs @@ -91,6 +91,9 @@ namespace Content.Server.Atmos.EntitySystems public void SetAirblocked(AirtightComponent airtight, bool airblocked, TransformComponent? xform = null) { + if (airtight.AirBlocked == airblocked) + return; + if (!Resolve(airtight.Owner, ref xform)) return; airtight.AirBlocked = airblocked;