EntityWhitelist uses EntityUid
This commit is contained in:
@@ -34,7 +34,7 @@ namespace Content.Server.HandLabeler
|
||||
|
||||
private void AfterInteractOn(EntityUid uid, HandLabelerComponent handLabeler, AfterInteractEvent args)
|
||||
{
|
||||
if (args.Target == null || !handLabeler.Whitelist.IsValid(args.Target))
|
||||
if (args.Target == null || !handLabeler.Whitelist.IsValid(args.Target.Uid))
|
||||
return;
|
||||
|
||||
AddLabelTo(uid, handLabeler, args.Target, out string? result);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace Content.Server.Storage.Components
|
||||
return false;
|
||||
}
|
||||
|
||||
if (_whitelist != null && !_whitelist.IsValid(entity))
|
||||
if (_whitelist != null && !_whitelist.IsValid(entity.Uid))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -20,10 +20,10 @@ namespace Content.Server.Storage.EntitySystems
|
||||
var count = 0;
|
||||
foreach (var entity in component.StoredEntities)
|
||||
{
|
||||
if (itemCounter.Count.IsValid(entity)) count++;
|
||||
if (itemCounter.Count.IsValid(entity.Uid)) count++;
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace Content.Server.Storage.EntitySystems
|
||||
{
|
||||
foreach (var entity in containedLayers)
|
||||
{
|
||||
if (mapLayerData.Whitelist.IsValid(entity))
|
||||
if (mapLayerData.Whitelist.IsValid(entity.Uid))
|
||||
{
|
||||
list.Add(mapLayerData.Layer);
|
||||
break;
|
||||
@@ -40,4 +40,4 @@ namespace Content.Server.Storage.EntitySystems
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user