Skip to content

Commit

Permalink
Do not return from the mail teleporter update loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnemotechnician committed Oct 13, 2024
1 parent 95cd025 commit 017b5a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Content.Server/Mail/Systems/MailSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ public override void Update(float frameTime)
foreach (var mailTeleporter in EntityQuery<MailTeleporterComponent>())
{
if (TryComp<ApcPowerReceiverComponent>(mailTeleporter.Owner, out var power) && !power.Powered)
return;
continue;

mailTeleporter.Accumulator += frameTime;

if (mailTeleporter.Accumulator < mailTeleporter.TeleportInterval.TotalSeconds)
continue;

Expand Down

0 comments on commit 017b5a6

Please sign in to comment.