Quick fix for holofan and tiny fan (#12420)

Fixes https://github.com/space-wizards/space-station-14/issues/12411
This commit is contained in:
Alex Evgrashin
2022-11-06 20:34:06 +01:00
committed by GitHub
parent aa309005d8
commit 6913c77ab1
3 changed files with 7 additions and 5 deletions

View File

@@ -31,11 +31,7 @@ namespace Content.Server.Atmos.EntitySystems
var moveEvent = new MoveEvent(airtight.Owner, default, default, Angle.Zero, xform.LocalRotation, xform, false);
OnAirtightRotated(uid, airtight, ref moveEvent);
}
// Adding this component will immediately anchor the entity, because the atmos system
// requires airtight entities to be anchored for performance.
xform.Anchored = true;
UpdatePosition(airtight);
}