EntityWhitelist uses EntityUid

This commit is contained in:
Vera Aguilera Puerto
2021-11-09 13:08:09 +01:00
parent 5d66a08ac9
commit 1f9e1c033f
8 changed files with 20 additions and 18 deletions

View File

@@ -60,7 +60,7 @@ namespace Content.Server.Pinpointer
var l = new SortedList<float, EntityUid>();
foreach (var e in ents)
{
if (whitelist.IsValid(e))
if (whitelist.IsValid(e.Uid))
{
var dist = (e.Transform.WorldPosition - transform.WorldPosition).LengthSquared;
l.TryAdd(dist, e.Uid);