Dewarns access (#16666)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
TemporalOroboros
2023-07-22 21:19:51 -07:00
committed by GitHub
parent 415701fd74
commit df1dcb74ac
27 changed files with 438 additions and 407 deletions

View File

@@ -59,7 +59,7 @@ public sealed class StationRecordsSystem : EntitySystem
string? jobId, StationRecordsComponent? records = null)
{
if (!Resolve(station, ref records)
|| String.IsNullOrEmpty(jobId)
|| string.IsNullOrEmpty(jobId)
|| !_prototypeManager.HasIndex<JobPrototype>(jobId))
{
return;
@@ -204,7 +204,7 @@ public sealed class StationRecordsSystem : EntitySystem
{
if (!Resolve(station, ref records))
{
return new (StationRecordKey, T)[]{};
return Array.Empty<(StationRecordKey, T)>();
}
return records.Records.GetRecordsOfType<T>();