Node network bug (#9039)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user