Possibly fix signals breaking due to enum cache being cleared

This commit is contained in:
Nick 2023-08-28 11:58:08 -04:00
parent 3968545d24
commit d424bffc2f
2 changed files with 5 additions and 2 deletions

View File

@ -283,6 +283,10 @@ namespace NewHorizons
SearchUtilities.ClearCache(); SearchUtilities.ClearCache();
ProxyHandler.ClearCache(); ProxyHandler.ClearCache();
// Enum cache, if not cleared every time, breaks signals
// I don't know why, but it's probably the least expensive cache there is, so let's just clear it every time
EnumUtilities.ClearCache();
// Caches of other assets only have to be cleared if we changed star systems // Caches of other assets only have to be cleared if we changed star systems
if (CurrentStarSystem != _previousStarSystem) if (CurrentStarSystem != _previousStarSystem)
{ {
@ -290,7 +294,6 @@ namespace NewHorizons
ImageUtilities.ClearCache(); ImageUtilities.ClearCache();
AudioUtilities.ClearCache(); AudioUtilities.ClearCache();
AssetBundleUtilities.ClearCache(); AssetBundleUtilities.ClearCache();
EnumUtilities.ClearCache();
} }
IsSystemReady = false; IsSystemReady = false;

View File

@ -4,7 +4,7 @@
"author": "xen, Bwc9876, clay, MegaPiggy, John, Trifid, Hawkbar, Book", "author": "xen, Bwc9876, clay, MegaPiggy, John, Trifid, Hawkbar, Book",
"name": "New Horizons", "name": "New Horizons",
"uniqueName": "xen.NewHorizons", "uniqueName": "xen.NewHorizons",
"version": "1.16.2", "version": "1.16.3",
"owmlVersion": "2.9.3", "owmlVersion": "2.9.3",
"dependencies": [ "JohnCorby.VanillaFix", "_nebula.MenuFramework", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ], "dependencies": [ "JohnCorby.VanillaFix", "_nebula.MenuFramework", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
"conflicts": [ "Raicuparta.QuantumSpaceBuddies", "PacificEngine.OW_CommonResources" ], "conflicts": [ "Raicuparta.QuantumSpaceBuddies", "PacificEngine.OW_CommonResources" ],