Node network bug (#9039)

This commit is contained in:
Leon Friedrich
2022-06-24 00:21:44 +12:00
committed by GitHub
parent a63f698544
commit ad60eb770e
4 changed files with 18 additions and 17 deletions

View File

@@ -56,9 +56,6 @@ namespace Content.Server.NodeContainer.NodeGroups
[ViewVariables]
public bool Removed { get; set; } = false;
[ViewVariables]
protected EntityUid GridId { get; private set; }
/// <summary>
/// Network ID of this group for client-side debug visualization of nodes.
/// </summary>
@@ -75,12 +72,6 @@ namespace Content.Server.NodeContainer.NodeGroups
public virtual void Initialize(Node sourceNode, IEntityManager? entMan = null)
{
// TODO: Can we get rid of this GridId?
IoCManager.Resolve(ref entMan);
var xform = entMan.GetComponent<TransformComponent>(sourceNode.Owner);
DebugTools.AssertNotNull(xform.GridUid);
GridId = xform.GridUid!.Value;
}
/// <summary>