Remove a redundant trycomp from TileAnomalySystem (#36924)

* remove a redundant check

* revert this space.
This commit is contained in:
Kyle Tyo
2025-04-25 15:32:23 -04:00
committed by GitHub
parent 5fa59ea213
commit b2f1f7c5ad

View 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;