Remove uses of TransformComponent.ChildEntities (#22442)
* Make output of ChildEnumerator non-nullable * Remove uses of ChildEntities * poke tests --------- Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -64,7 +64,9 @@ namespace Content.Server.Construction.Commands
|
||||
var changed = 0;
|
||||
var tagSystem = _entManager.EntitySysManager.GetEntitySystem<TagSystem>();
|
||||
|
||||
foreach (var child in xformQuery.GetComponent(gridId.Value).ChildEntities)
|
||||
|
||||
var enumerator = xformQuery.GetComponent(gridId.Value).ChildEnumerator;
|
||||
while (enumerator.MoveNext(out var child))
|
||||
{
|
||||
if (!_entManager.EntityExists(child))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user