By adding an extra check to see if the item already exists in the collection.
This error comes up occasionally for some people and seems to be harmless, so to get this out of the hair of mod load order troubleshooters everywhere here's a small fix.
Error for reference:
[HugsLib][ERR] GiddyUpCore caused an exception during OnDefsLoaded: System.ArgumentException: An element with the same key already exists in the dictionary.
at System.Collections.Generic.Dictionary`2[Verse.PawnKindDef,System.Single].Add
By adding an extra check to see if the item already exists in the collection.
This error comes up occasionally for some people and seems to be harmless, so to get this out of the hair of mod load order troubleshooters everywhere here's a small fix.
Error for reference: [HugsLib][ERR] GiddyUpCore caused an exception during OnDefsLoaded: System.ArgumentException: An element with the same key already exists in the dictionary. at System.Collections.Generic.Dictionary`2[Verse.PawnKindDef,System.Single].Add