Skip to content

Commit

Permalink
ohhhhhh
Browse files Browse the repository at this point in the history
  • Loading branch information
MilonPL committed Oct 28, 2024
1 parent 6815b30 commit e4914e9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Content.Server/DeltaV/Mail/EntitySystems/MailSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Content.Server.Damage.Components;
using Content.Server.DeltaV.Cargo.Components;
using Content.Server.DeltaV.Cargo.Systems;
using Content.Server.DeltaV.Mail.Components;
using Content.Server.Destructible.Thresholds.Behaviors;
using Content.Server.Destructible.Thresholds.Triggers;
using Content.Server.Destructible.Thresholds;
Expand All @@ -19,6 +20,7 @@
using Content.Shared.Access;
using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.Damage;
using Content.Shared.DeltaV.Mail;
using Content.Shared.Destructible;
using Content.Shared.Emag.Components;
using Content.Shared.Emag.Systems;
Expand All @@ -41,8 +43,6 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Threading;
using Content.Server.DeltaV.Mail.Components;
using Content.Shared.DeltaV.Mail;
using Timer = Robust.Shared.Timing.Timer;

namespace Content.Server.DeltaV.Mail.EntitySystems
Expand Down Expand Up @@ -96,10 +96,10 @@ public override void Update(float frameTime)
{
base.Update(frameTime);

var query = EntityQueryEnumerator<MailTeleporterComponent, ApcPowerReceiverComponent>();
while (query.MoveNext(out var uid, out var mailTeleporter, out var power))
var query = EntityQueryEnumerator<MailTeleporterComponent>();
while (query.MoveNext(out var uid, out var mailTeleporter))
{
if (!power.Powered)
if (TryComp<ApcPowerReceiverComponent>(uid, out var power) && !power.Powered)
continue;

mailTeleporter.Accumulator += frameTime;
Expand Down

0 comments on commit e4914e9

Please sign in to comment.