In https://github.com/KiameV/rimworld-weaponstorage/blob/master/Source/HarmonyPatches.cs#L537 you're running a prefix on ScribeSaver.InitSaving. This prefix fails when the WeaponStoragesToUse list in WorldComp is populated, but the map for these storages is null. My guess is after closing a game and returning to the main menu, the WeaponStoragesToUse list is not cleared. That's causing some issues in other scribe calls, and a potential memory leak.
Please either;
clear the list of weapon storages to use when quitting the current game,
In https://github.com/KiameV/rimworld-weaponstorage/blob/master/Source/HarmonyPatches.cs#L537 you're running a prefix on
ScribeSaver.InitSaving
. This prefix fails when theWeaponStoragesToUse
list inWorldComp
is populated, but the map for these storages isnull
. My guess is after closing a game and returning to the main menu, theWeaponStoragesToUse
list is not cleared. That's causing some issues in other scribe calls, and a potential memory leak.Please either;