diff --git a/Content.Shared/Atmos/Piping/Unary/Components/GasCanisterComponent.cs b/Content.Shared/Atmos/Piping/Unary/Components/GasCanisterComponent.cs index 204cbc76d5..40d76684ee 100644 --- a/Content.Shared/Atmos/Piping/Unary/Components/GasCanisterComponent.cs +++ b/Content.Shared/Atmos/Piping/Unary/Components/GasCanisterComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameStates; namespace Content.Shared.Atmos.Piping.Unary.Components; -[RegisterComponent, NetworkedComponent, AutoGenerateComponentState] +[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)] public sealed partial class GasCanisterComponent : Component, IGasMixtureHolder { [DataField("port")] diff --git a/Content.Shared/Configurable/ConfigurationComponent.cs b/Content.Shared/Configurable/ConfigurationComponent.cs index 63c0845083..80affb81f5 100644 --- a/Content.Shared/Configurable/ConfigurationComponent.cs +++ b/Content.Shared/Configurable/ConfigurationComponent.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Configurable /// /// If you want a more detailed description ask the original coder. /// - [RegisterComponent, NetworkedComponent, AutoGenerateComponentState] + [RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)] public sealed partial class ConfigurationComponent : Component { /// diff --git a/Content.Shared/Follower/Components/FollowerComponent.cs b/Content.Shared/Follower/Components/FollowerComponent.cs index ede810293f..15d23a7037 100644 --- a/Content.Shared/Follower/Components/FollowerComponent.cs +++ b/Content.Shared/Follower/Components/FollowerComponent.cs @@ -4,7 +4,7 @@ namespace Content.Shared.Follower.Components; [RegisterComponent] [Access(typeof(FollowerSystem))] -[NetworkedComponent, AutoGenerateComponentState(RaiseAfterAutoHandleState = true)] +[NetworkedComponent, AutoGenerateComponentState] public sealed partial class FollowerComponent : Component { [AutoNetworkedField, DataField("following")] diff --git a/Content.Shared/Follower/FollowerSystem.cs b/Content.Shared/Follower/FollowerSystem.cs index b9c2f4bece..07639a1790 100644 --- a/Content.Shared/Follower/FollowerSystem.cs +++ b/Content.Shared/Follower/FollowerSystem.cs @@ -44,7 +44,6 @@ public sealed class FollowerSystem : EntitySystem SubscribeLocalEvent(OnFollowerMove); SubscribeLocalEvent(OnPullStarted); SubscribeLocalEvent(OnFollowerTerminating); - SubscribeLocalEvent(OnAfterHandleState); SubscribeLocalEvent(OnFollowedAttempt); SubscribeLocalEvent(OnGotEquippedHand); @@ -150,11 +149,6 @@ public sealed class FollowerSystem : EntitySystem StopFollowingEntity(uid, component.Following, deparent: false); } - private void OnAfterHandleState(Entity entity, ref AfterAutoHandleStateEvent args) - { - StartFollowingEntity(entity, entity.Comp.Following); - } - // Since we parent our observer to the followed entity, we need to detach // before they get deleted so that we don't get recursively deleted too. private void OnFollowedTerminating(EntityUid uid, FollowedComponent component, ref EntityTerminatingEvent args)