Skip to content

Commit

Permalink
Fix SystemInitializer infinite loop. (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiao921 authored Sep 5, 2024
1 parent 436e6b2 commit cbfbbf8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
9 changes: 0 additions & 9 deletions R2API.ContentManagement/CatalogBlockers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ private static void SetAvailability<T>(bool availability)
[SystemInitializer(typeof(GameModeCatalog))]
private static void BlockGameModes() => SetAvailability<Run>(false);

[SystemInitializer(typeof(RoR2.Networking.NetworkManagerSystem))]
private static void BlockNetworkedPrefabs() => SetAvailability<NetworkIdentity>(false);

[SystemInitializer(typeof(SkillCatalog))]
private static void BlockSkills() => SetAvailability<SkillDef>(false);

Expand Down Expand Up @@ -138,9 +135,6 @@ private static void SetAvailability<T>(bool availability)
[SystemInitializer(typeof(GameEndingCatalog))]
private static void BlockGameEndings() => SetAvailability<GameEndingDef>(false);

[SystemInitializer(typeof(EntityStateCatalog))]
private static void BlockEntityStateConfigurations() => SetAvailability<EntityStateConfiguration>(false);

[SystemInitializer(typeof(ExpansionCatalog))]
private static void BlockExpansionDefs() => SetAvailability<ExpansionDef>(false);

Expand All @@ -150,8 +144,5 @@ private static void SetAvailability<T>(bool availability)
[SystemInitializer(typeof(MiscPickupCatalog))]
private static void BlockMiscPickupDefs() => SetAvailability<MiscPickupDef>(false);

[SystemInitializer(typeof(EntityStateCatalog))]
private static void BlockEntityStates() => SetAvailability<EntityState>(false);

#endregion
}
3 changes: 3 additions & 0 deletions R2API.ContentManagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion R2API.ContentManagement/thunderstore.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbfbbf8

Please sign in to comment.