Stop unnecessary airtight updates (#12310)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user