Slightly reduce allocations in GameScreenBase
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Immutable;
|
using System.Collections.Immutable;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@@ -175,7 +176,7 @@ namespace Content.Client.Viewport
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (foundEntities.Count == 0)
|
if (foundEntities.Count == 0)
|
||||||
return new List<EntityUid>();
|
return Array.Empty<EntityUid>();
|
||||||
|
|
||||||
foundEntities.Sort(new ClickableEntityComparer(_entityManager));
|
foundEntities.Sort(new ClickableEntityComparer(_entityManager));
|
||||||
// 0 is the top element.
|
// 0 is the top element.
|
||||||
|
|||||||
Reference in New Issue
Block a user