Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Content.Shared/Storage/EntitySystems/MagnetPickupSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Content.Shared.Whitelist;
using Robust.Shared.Physics.Components;
using Robust.Shared.Timing;
using Robust.Shared.Network;

namespace Content.Shared.Storage.EntitySystems;

Expand All @@ -17,6 +18,7 @@ public sealed class MagnetPickupSystem : EntitySystem
[Dependency] private readonly SharedTransformSystem _transform = default!;
[Dependency] private readonly SharedStorageSystem _storage = default!;
[Dependency] private readonly EntityWhitelistSystem _whitelistSystem = default!;
[Dependency] private readonly INetManager _net = default!;


private static readonly TimeSpan ScanDelay = TimeSpan.FromSeconds(1);
Expand All @@ -38,6 +40,10 @@ private void OnMagnetMapInit(EntityUid uid, MagnetPickupComponent component, Map
public override void Update(float frameTime)
{
base.Update(frameTime);

if (_net.IsClient)
return;

var query = EntityQueryEnumerator<MagnetPickupComponent, StorageComponent, TransformComponent, MetaDataComponent>();
var currentTime = _timing.CurTime;

Expand Down
Loading