Optimise spreadersystem (#13329)
* Optimise spreadersystem It makes entity spawning slower. * Remove redundant airtightchangedevent * oop
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user