Make test EntitySpecifiers ignore entities with null prototypes (#22174)

This commit is contained in:
TemporalOroboros
2023-12-06 17:09:44 -08:00
committed by GitHub
parent 17e01430fb
commit 0c63f2ee57
3 changed files with 14 additions and 7 deletions

View File

@@ -156,7 +156,9 @@ public abstract partial class InteractionTest
protected EntitySpecifierCollection ToEntityCollection(IEnumerable<EntityUid> entities)
{
var collection = new EntitySpecifierCollection(entities.Select(uid => ToEntitySpecifier(uid)));
var collection = new EntitySpecifierCollection(entities
.Select(ToEntitySpecifier)
.OfType<EntitySpecifier>());
Assert.That(collection.Converted);
return collection;
}