ok saving pipes now works (#4906)
* ok saving pipes now works * EW HACKS
This commit is contained in:
@@ -19,7 +19,8 @@ namespace Content.Server.NodeContainer
|
||||
{
|
||||
public override string Name => "NodeContainer";
|
||||
|
||||
[DataField("nodes")] [ViewVariables] public Dictionary<string, Node> Nodes { get; } = new();
|
||||
//HACK: THIS BEING readOnly IS A FILTHY HACK AND I HATE IT --moony
|
||||
[DataField("nodes", readOnly: true)] [ViewVariables] public Dictionary<string, Node> Nodes { get; } = new();
|
||||
|
||||
[DataField("examinable")] private bool _examinable = false;
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ using Content.Server.NodeContainer.EntitySystems;
|
||||
using Content.Server.NodeContainer.NodeGroups;
|
||||
using Content.Shared.Atmos;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Map;
|
||||
@@ -104,6 +103,8 @@ namespace Content.Server.NodeContainer.Nodes
|
||||
public override void OnContainerStartup()
|
||||
{
|
||||
base.OnContainerStartup();
|
||||
//HACK: THIS LINE RIGHT HERE IS A FILTHY HACK AND I HATE IT --moony
|
||||
PipeDirection = PipeDirection.RotatePipeDirection(Owner.Transform.LocalRotation);
|
||||
OnConnectedDirectionsNeedsUpdating();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user