From 99994a69bd7dce0cc30727a612d6cd611127d3df Mon Sep 17 00:00:00 2001 From: CWX Date: Sat, 25 Jan 2025 14:27:15 +0000 Subject: [PATCH] null guard --- Libraries/Core/Generators/LocationLootGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Core/Generators/LocationLootGenerator.cs b/Libraries/Core/Generators/LocationLootGenerator.cs index d74424ea..72b41328 100644 --- a/Libraries/Core/Generators/LocationLootGenerator.cs +++ b/Libraries/Core/Generators/LocationLootGenerator.cs @@ -794,7 +794,7 @@ public class LocationLootGenerator( List forcedSpawnPoints, string locationName, Dictionary> staticAmmoDist) { - var lootToForceSingleAmountOnMap = _locationConfig.ForcedLootSingleSpawnById[locationName]; + var lootToForceSingleAmountOnMap = _locationConfig.ForcedLootSingleSpawnById.GetValueOrDefault(locationName); if (lootToForceSingleAmountOnMap is not null) { // Process loot items defined as requiring only 1 spawn position as they appear in multiple positions on the map