From 4ce05a9b758979dd054cb154962d3845316345ec Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Tue, 29 Jun 2021 21:23:00 +0200 Subject: [PATCH] Work around transform anchoring in construction. --- Content.Server/Construction/ConstructionSystem.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Content.Server/Construction/ConstructionSystem.cs b/Content.Server/Construction/ConstructionSystem.cs index a102f51697..c18701866f 100644 --- a/Content.Server/Construction/ConstructionSystem.cs +++ b/Content.Server/Construction/ConstructionSystem.cs @@ -457,9 +457,16 @@ namespace Content.Server.Construction return; } + // We do this to be able to move the construction to its proper position in case it's anchored... + // Oh wow transform anchoring is amazing wow I love it!!!! + var wasAnchored = structure.Transform.Anchored; + structure.Transform.Anchored = false; + structure.Transform.Coordinates = ev.Location; structure.Transform.LocalRotation = constructionPrototype.CanRotate ? ev.Angle : Angle.Zero; + structure.Transform.Anchored = wasAnchored; + RaiseNetworkEvent(new AckStructureConstructionMessage(ev.Ack)); Cleanup();