Remove a redundant trycomp from TileAnomalySystem (#36924)
* remove a redundant check * revert this space.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user