Stop unnecessary airtight updates (#12310)
This commit is contained in:
parent
78e5e96a3c
commit
8c73cfb06d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue