Optimise spreadersystem (#13329)

* Optimise spreadersystem

It makes entity spawning slower.

* Remove redundant airtightchangedevent

* oop
This commit is contained in:
metalgearsloth
2023-01-11 19:18:26 +11:00
committed by GitHub
parent fdc0c86fcf
commit 8900409956
3 changed files with 31 additions and 22 deletions

View File

@@ -67,7 +67,7 @@ public sealed class DoorSystem : SharedDoorSystem
return;
if (door.ChangeAirtight && TryComp(uid, out AirtightComponent? airtight))
_airtightSystem.SetAirblocked(airtight, collidable);
_airtightSystem.SetAirblocked(uid, airtight, collidable);
// Pathfinding / AI stuff.
RaiseLocalEvent(new AccessReaderChangeEvent(uid, collidable));