]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove a redundant trycomp from TileAnomalySystem (#36924)
authorKyle Tyo <36606155+VerinSenpai@users.noreply.github.com>
Fri, 25 Apr 2025 19:32:23 +0000 (15:32 -0400)
committerGitHub <noreply@github.com>
Fri, 25 Apr 2025 19:32:23 +0000 (15:32 -0400)
* remove a redundant check

* revert this space.

Content.Server/Anomaly/Effects/TileAnomalySystem.cs

index 92f5415252675a132a0e52bc48cc3655ffa53988..6c38a5941cc21153efbb708da4070795dee23b31 100644 (file)
@@ -84,10 +84,6 @@ public sealed class TileAnomalySystem : SharedTileAnomalySystem
 
     private void SpawnTiles(Entity<TileSpawnAnomalyComponent> anomaly, TileSpawnSettingsEntry entry, float stability, float severity, float powerMod)
     {
-        var xform = Transform(anomaly);
-        if (!TryComp<MapGridComponent>(xform.GridUid, out var grid))
-            return;
-
         var tiles = _anomaly.GetSpawningPoints(anomaly, stability, severity, entry.Settings, powerMod);
         if (tiles == null)
             return;