diff --git a/Content.Server/Shuttles/Systems/ShuttleSystem.cs b/Content.Server/Shuttles/Systems/ShuttleSystem.cs index cea7fbfc09..e96ceffd16 100644 --- a/Content.Server/Shuttles/Systems/ShuttleSystem.cs +++ b/Content.Server/Shuttles/Systems/ShuttleSystem.cs @@ -104,7 +104,12 @@ public sealed partial class ShuttleSystem : SharedShuttleSystem return; EnsureComp(ev.EntityUid); - EnsureComp(ev.EntityUid); + + // This and RoofComponent should be mutually exclusive, so ImplicitRoof should be removed if the grid has RoofComponent + if (HasComp(ev.EntityUid)) + RemComp(ev.EntityUid); + else + EnsureComp(ev.EntityUid); } private void OnShuttleStartup(EntityUid uid, ShuttleComponent component, ComponentStartup args) diff --git a/Content.Shared/Light/Components/ImplicitRoofComponent.cs b/Content.Shared/Light/Components/ImplicitRoofComponent.cs index b457bac3e4..08afe883b7 100644 --- a/Content.Shared/Light/Components/ImplicitRoofComponent.cs +++ b/Content.Shared/Light/Components/ImplicitRoofComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Light.Components; /// -/// Assumes the entire attached grid is rooved. +/// Assumes the entire attached grid is rooved. This component will get removed if the grid has RoofComponent. /// [RegisterComponent, NetworkedComponent, AutoGenerateComponentState] public sealed partial class ImplicitRoofComponent : Component diff --git a/Content.Shared/Light/Components/RoofComponent.cs b/Content.Shared/Light/Components/RoofComponent.cs index 47de333af0..4457a952eb 100644 --- a/Content.Shared/Light/Components/RoofComponent.cs +++ b/Content.Shared/Light/Components/RoofComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Light.Components; /// -/// Will draw shadows over tiles flagged as roof tiles on the attached grid. +/// Will draw shadows over tiles flagged as roof tiles on the attached grid. ImplicitRoofComponent will get removed if the grid has this component. /// [RegisterComponent, NetworkedComponent, AutoGenerateComponentState] public sealed partial class RoofComponent : Component