mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
tuple
This commit is contained in:
@@ -283,7 +283,7 @@ public abstract class ComponentTreeSystem<TTreeComp, TComp> : EntitySystem
|
||||
(EntityUid uid, MapGridComponent grid,
|
||||
ref (EntityManager EntityManager, ValueList<(EntityUid, TTreeComp)> trees) tuple) =>
|
||||
{
|
||||
if (EntityManager.TryGetComponent<TTreeComp>(uid, out var treeComp))
|
||||
if (tuple.EntityManager.TryGetComponent<TTreeComp>(uid, out var treeComp))
|
||||
{
|
||||
tuple.trees.Add((uid, treeComp));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user