Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rxup committed Oct 26, 2023
1 parent dfe7e35 commit c63eef7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions Content.IntegrationTests/Tests/EntityTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ public async Task SpawnAndDeleteEntityCountTest()
//Backmen
"FugitiveCountdown", // Fugitive.
"ShipyardConsole", // Shipyard Console
"Eftpos", // attach to bank account on mapinit


// Spawner entities
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,6 @@ private void InitializeEmergencyConsole()
SubscribeLocalEvent<EscapePodComponent, EntityUnpausedEvent>(OnEscapeUnpaused);
}

// Corvax-Hijack-Start
private void OnEmagged(EntityUid uid, EmergencyShuttleConsoleComponent component, ref GotEmaggedEvent args)
{
_logger.Add(LogType.EmergencyShuttle, LogImpact.Extreme, $"{ToPrettyString(args.UserUid):player} emagged shuttle console for early launch");
EarlyLaunch();
}
// Corvax-Hijack-End

private void OnEmergencyOpenAttempt(EntityUid uid, EmergencyShuttleConsoleComponent component, ActivatableUIOpenAttemptEvent args)
{
// I'm hoping ActivatableUI checks it's open before allowing these messages.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public override void Update(float frameTime)
if (!magboot.On)
continue;

var artiQuery = EntityQueryEnumerator<ArtifactMagnetTriggerComponent, TransformComponent>();
while (artiQuery.MoveNext(out var artifactUid, out var trigger, out var xform))
var artiQuery = EntityQueryEnumerator<ArtifactMagnetTriggerComponent, TransformComponent, ArtifactComponent>(); // backmen: fix spam errors
while (artiQuery.MoveNext(out var artifactUid, out var trigger, out var xform, out _))
{
if (!magXform.Coordinates.TryDistance(EntityManager, xform.Coordinates, out var distance))
continue;
Expand Down

0 comments on commit c63eef7

Please sign in to comment.