From cbfbbf89b23c174d24a88a3248fdf0fe57d48eec Mon Sep 17 00:00:00 2001 From: Quentin <837334+xiaoxiao921@users.noreply.github.com> Date: Thu, 5 Sep 2024 19:46:54 +0200 Subject: [PATCH] Fix SystemInitializer infinite loop. (#537) --- R2API.ContentManagement/CatalogBlockers.cs | 9 --------- R2API.ContentManagement/README.md | 3 +++ R2API.ContentManagement/thunderstore.toml | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/R2API.ContentManagement/CatalogBlockers.cs b/R2API.ContentManagement/CatalogBlockers.cs index a3a2454d..1900b5d0 100644 --- a/R2API.ContentManagement/CatalogBlockers.cs +++ b/R2API.ContentManagement/CatalogBlockers.cs @@ -81,9 +81,6 @@ private static void SetAvailability(bool availability) [SystemInitializer(typeof(GameModeCatalog))] private static void BlockGameModes() => SetAvailability(false); - [SystemInitializer(typeof(RoR2.Networking.NetworkManagerSystem))] - private static void BlockNetworkedPrefabs() => SetAvailability(false); - [SystemInitializer(typeof(SkillCatalog))] private static void BlockSkills() => SetAvailability(false); @@ -138,9 +135,6 @@ private static void SetAvailability(bool availability) [SystemInitializer(typeof(GameEndingCatalog))] private static void BlockGameEndings() => SetAvailability(false); - [SystemInitializer(typeof(EntityStateCatalog))] - private static void BlockEntityStateConfigurations() => SetAvailability(false); - [SystemInitializer(typeof(ExpansionCatalog))] private static void BlockExpansionDefs() => SetAvailability(false); @@ -150,8 +144,5 @@ private static void SetAvailability(bool availability) [SystemInitializer(typeof(MiscPickupCatalog))] private static void BlockMiscPickupDefs() => SetAvailability(false); - [SystemInitializer(typeof(EntityStateCatalog))] - private static void BlockEntityStates() => SetAvailability(false); - #endregion } diff --git a/R2API.ContentManagement/README.md b/R2API.ContentManagement/README.md index e9311ade..7e4614ce 100644 --- a/R2API.ContentManagement/README.md +++ b/R2API.ContentManagement/README.md @@ -23,6 +23,9 @@ R2API.ContentManaged is used for mods that would like to have R2API handle the c ## Changelog +### '1.0.6' +* Fix SystemInitializer infinite loop. + ### '1.0.5' * Initial fixes for SOTS DLC2 Release. diff --git a/R2API.ContentManagement/thunderstore.toml b/R2API.ContentManagement/thunderstore.toml index 0d1c7e67..c507ab9c 100644 --- a/R2API.ContentManagement/thunderstore.toml +++ b/R2API.ContentManagement/thunderstore.toml @@ -5,7 +5,7 @@ schemaVersion = "0.0.1" [package] namespace = "RiskofThunder" name = "R2API_ContentManagement" -versionNumber = "1.0.5" +versionNumber = "1.0.6" description = "API for adding content to the game" websiteUrl = "https://github.com/risk-of-thunder/R2API" containsNsfwContent = false