## Bug fixes
- Fixed custom signals being broken by enum caching, for some reason
This commit is contained in:
Nick 2023-08-28 12:50:57 -04:00 committed by GitHub
commit 70d226a9d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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" ],