Work around transform anchoring in construction.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user