From 45c6be034de3717cd256d2e8e7092fe3012e4f14 Mon Sep 17 00:00:00 2001 From: SlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com> Date: Sat, 4 Jul 2026 07:07:54 +0200 Subject: [PATCH] Add sandbox support for rotatable/mirrored tiles (#34860) * Initial commit * Add AllowRotationMirror * Update to follow changes to RT PR * fixes * erm --------- Co-authored-by: AJCM-git --- Content.Client/Sandbox/SandboxSystem.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Content.Client/Sandbox/SandboxSystem.cs b/Content.Client/Sandbox/SandboxSystem.cs index 18617b08bb..18bcc51f2f 100644 --- a/Content.Client/Sandbox/SandboxSystem.cs +++ b/Content.Client/Sandbox/SandboxSystem.cs @@ -103,6 +103,8 @@ namespace Content.Client.Sandbox if (_placement.Eraser) _placement.ToggleEraser(); + _placement.Direction = _transform.GetWorldRotation(uid).GetCardinalDir(); + _placement.BeginPlacing(new() { EntityType = comp.EntityPrototype.ID, @@ -121,6 +123,9 @@ namespace Content.Client.Sandbox if (_placement.Eraser) _placement.ToggleEraser(); + _placement.Direction = (Direction)(tileRef.Tile.RotationMirroring % 4 * 2); + _placement.Mirrored = tileRef.Tile.RotationMirroring >= 4; + _placement.BeginPlacing(new() { EntityType = null,