Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Update Content.Server/Communications/CommunicationsConsoleSystem.cs
Browse files Browse the repository at this point in the history
Co-authored-by: VMSolidus <evilexecutive@gmail.com>
  • Loading branch information
2 people authored and rbertoche committed Aug 27, 2024
1 parent 0d931e0 commit 1cdb36e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Content.Server/Communications/CommunicationsConsoleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -370,14 +370,13 @@ private void OnToggleEmergencyMaintMessage(EntityUid uid, CommunicationsConsoleC
var query = EntityQueryEnumerator<DoorComponent>();
while (query.MoveNext(out var doorUid, out var component))
{
if (TryGetNetEntity(doorUid, out var netEntity) && TryGetEntityData(netEntity.Value, out var entityUid, out var entityData)
&& _maintDoorPrototypeList.Contains(entityData.EntityPrototype!.ID)) //pega as airlocks do array por que nao da pra pegar todas as 50 variações (minha vida é uma tristeza)
{
if (!TryComp<AirlockComponent>(doorUid, out var airlock))
continue;
if (!TryGetNetEntity(doorUid, out var netEntity)
|| !TryGetEntityData(netEntity.Value, out var entityUid, out var entityData)
|| !_maintDoorPrototypeList.Contains(entityData.EntityPrototype!.ID))

Check failure on line 375 in Content.Server/Communications/CommunicationsConsoleSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Invalid expression term '||'

Check failure on line 375 in Content.Server/Communications/CommunicationsConsoleSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Invalid expression term '||'

Check failure on line 375 in Content.Server/Communications/CommunicationsConsoleSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Invalid expression term '||'

Check failure on line 375 in Content.Server/Communications/CommunicationsConsoleSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Invalid expression term '||'
|| !TryComp<AirlockComponent>(doorUid, out var airlock)

Check failure on line 376 in Content.Server/Communications/CommunicationsConsoleSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

; expected

Check failure on line 376 in Content.Server/Communications/CommunicationsConsoleSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

; expected

Check failure on line 376 in Content.Server/Communications/CommunicationsConsoleSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

; expected

Check failure on line 376 in Content.Server/Communications/CommunicationsConsoleSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

; expected
continue;

_airlock.ToggleEmergencyAccess(doorUid, airlock);
}
_airlock.ToggleEmergencyAccess(doorUid, airlock);
}
comp.ToggleAcessTimer = _timing.CurTime.TotalSeconds;
}
Expand Down

0 comments on commit 1cdb36e

Please sign in to comment.