From 6913c77ab1e5da30bf3040a503ab25604c2582de Mon Sep 17 00:00:00 2001 From: Alex Evgrashin Date: Sun, 6 Nov 2022 20:34:06 +0100 Subject: [PATCH] Quick fix for holofan and tiny fan (#12420) Fixes https://github.com/space-wizards/space-station-14/issues/12411 --- Content.Server/Atmos/EntitySystems/AirtightSystem.cs | 6 +----- .../Entities/Structures/Holographic/projections.yml | 4 ++++ .../Entities/Structures/Piping/Atmospherics/special.yml | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Content.Server/Atmos/EntitySystems/AirtightSystem.cs b/Content.Server/Atmos/EntitySystems/AirtightSystem.cs index 7a608b1d38..6301d2bf48 100644 --- a/Content.Server/Atmos/EntitySystems/AirtightSystem.cs +++ b/Content.Server/Atmos/EntitySystems/AirtightSystem.cs @@ -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); } diff --git a/Resources/Prototypes/Entities/Structures/Holographic/projections.yml b/Resources/Prototypes/Entities/Structures/Holographic/projections.yml index 3029ecf2c4..6497258c7e 100644 --- a/Resources/Prototypes/Entities/Structures/Holographic/projections.yml +++ b/Resources/Prototypes/Entities/Structures/Holographic/projections.yml @@ -2,7 +2,11 @@ id: HolosignWetFloor name: wet floor sign description: The words flicker as if they mean nothing. + placement: + mode: SnapgridCenter components: + - type: Transform + anchored: true - type: Physics bodyType: Static - type: Sprite diff --git a/Resources/Prototypes/Entities/Structures/Piping/Atmospherics/special.yml b/Resources/Prototypes/Entities/Structures/Piping/Atmospherics/special.yml index d30b6de79c..c597788c6c 100644 --- a/Resources/Prototypes/Entities/Structures/Piping/Atmospherics/special.yml +++ b/Resources/Prototypes/Entities/Structures/Piping/Atmospherics/special.yml @@ -6,6 +6,8 @@ placement: mode: SnapgridCenter components: + - type: Transform + anchored: true - type: Physics bodyType: Static - type: Sprite