diff --git a/Content.Server/Procedural/DungeonJob/DungeonJob.PostGenWallMount.cs b/Content.Server/Procedural/DungeonJob/DungeonJob.PostGenWallMount.cs index afc7608d64..d5c8587ea9 100644 --- a/Content.Server/Procedural/DungeonJob/DungeonJob.PostGenWallMount.cs +++ b/Content.Server/Procedural/DungeonJob/DungeonJob.PostGenWallMount.cs @@ -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(); var allExterior = new HashSet(dungeon.CorridorExteriorTiles);