Skip to content

Commit

Permalink
Update BluespaceHarvesterSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tornado-Technology committed Dec 9, 2024
1 parent 57329f9 commit 4b722e5
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using Robust.Shared.Audio.Systems;
using Robust.Shared.Map;
using Robust.Shared.Timing;
using Robust.Shared.Utility;

namespace Content.Server._CorvaxNext.BluespaceHarvester;

Expand Down Expand Up @@ -73,12 +74,7 @@ private void UpdateCount()
while (query.MoveNext(out var entityUid, out _))
{
var mapId = Transform(entityUid).MapID;
if (!dictionary.TryGetValue(mapId, out var list))
{
dictionary[mapId] = [];
list = dictionary[mapId];
}

var list = dictionary.GetOrNew(mapId);
list.Add(entityUid);
}

Expand Down

0 comments on commit 4b722e5

Please sign in to comment.