]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix exped caves generation (#32890)
authordeltanedas <39013340+deltanedas@users.noreply.github.com>
Sun, 24 Nov 2024 08:49:31 +0000 (08:49 +0000)
committerGitHub <noreply@github.com>
Sun, 24 Nov 2024 08:49:31 +0000 (09:49 +0100)
Co-authored-by: deltanedas <@deltanedas:kde.org>
Content.Server/Procedural/DungeonJob/DungeonJob.PostGenWallMount.cs

index afc7608d64af81cb3e1e1eabe53dfbc6c49e313f..d5c8587ea95f1376b6bb2636d692595b23d25e73 100644 (file)
@@ -20,7 +20,11 @@ public sealed partial class DungeonJob
         }
 
         var tileDef = _prototype.Index(tileProto);
-        data.SpawnGroups.TryGetValue(DungeonDataKey.WallMounts, out var spawnProto);
+        if (!data.SpawnGroups.TryGetValue(DungeonDataKey.WallMounts, out var spawnProto))
+        {
+            // caves can have no walls
+            return;
+        }
 
         var checkedTiles = new HashSet<Vector2i>();
         var allExterior = new HashSet<Vector2i>(dungeon.CorridorExteriorTiles);