Skip to content

Commit

Permalink
Component fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
HellCatten committed Sep 2, 2024
1 parent f797483 commit 3b01084
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Content.Shared/Storage/Components/MagnetPickupComponent.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using Content.Shared.Inventory;
using Robust.Shared.GameStates;

namespace Content.Server.Storage.Components;

/// <summary>
/// Applies an ongoing pickup area around the attached entity.
/// </summary>
[RegisterComponent, AutoGenerateComponentPause]
[NetworkedComponent]
[RegisterComponent, AutoGenerateComponentPause, AutoGenerateComponentState]
public sealed partial class MagnetPickupComponent : Component
{
[ViewVariables(VVAccess.ReadWrite), DataField("nextScan")]
Expand All @@ -15,7 +17,9 @@ public sealed partial class MagnetPickupComponent : Component
/// <summary>
/// If true, ignores SlotFlags and can magnet pickup on hands/ground.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]

[ViewVariables(VVAccess.ReadWrite), DataField()]
[AutoNetworkedField]
public bool ForcePickup = true;

[ViewVariables(VVAccess.ReadWrite), DataField("range")]
Expand Down

0 comments on commit 3b01084

Please sign in to comment.