]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix variantize command not respecting tile rotation (#39314)
authorSlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com>
Fri, 1 Aug 2025 11:46:59 +0000 (13:46 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Aug 2025 11:46:59 +0000 (07:46 -0400)
Oopsiedoodle

Content.Server/Administration/Commands/VariantizeCommand.cs

index a75f72b1c7da00c2c3919f5184a9bd1cd8e1c6b5..428207bde6d6f4814f0343605c01d38cb616ba77 100644 (file)
@@ -44,7 +44,7 @@ public sealed class VariantizeCommand : IConsoleCommand
         foreach (var tile in mapsSystem.GetAllTiles(euid.Value, gridComp))
         {
             var def = turfSystem.GetContentTileDefinition(tile);
-            var newTile = new Tile(tile.Tile.TypeId, tile.Tile.Flags, tileSystem.PickVariant(def));
+            var newTile = new Tile(tile.Tile.TypeId, tile.Tile.Flags, tileSystem.PickVariant(def), tile.Tile.RotationMirroring);
             mapsSystem.SetTile(euid.Value, gridComp, tile.GridIndices, newTile);
         }
     }