Fixed null issues
This commit is contained in:
@@ -1822,7 +1822,7 @@ public class ItemHelper(
|
||||
|
||||
foreach (var mod in itemWithChildren)
|
||||
{
|
||||
if (idMappings[mod.Id] is null)
|
||||
if (!idMappings.ContainsKey(mod.Id))
|
||||
{
|
||||
idMappings[mod.Id] = _hashUtil.Generate();
|
||||
}
|
||||
|
||||
@@ -218,6 +218,7 @@ namespace Core.Helpers
|
||||
pmcData.UnlockedInfo.UnlockedProductionRecipe.Add(matchingCraftId);
|
||||
if (response is not null)
|
||||
{
|
||||
response.ProfileChanges[sessionID].RecipeUnlocked ??= new Dictionary<string, bool>();
|
||||
response.ProfileChanges[sessionID].RecipeUnlocked[matchingCraftId] = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user