From a431c05d76f768f26ae2713f6f802fbca99a1b10 Mon Sep 17 00:00:00 2001 From: Arne Kiesewetter Date: Sun, 25 Aug 2024 00:59:06 +0200 Subject: [PATCH] Fix missing MonkeyLoader identifiable collection for Configs --- MonkeyLoader/MonkeyLoader.cs | 5 ++++- MonkeyLoader/MonkeyLoader.csproj | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/MonkeyLoader/MonkeyLoader.cs b/MonkeyLoader/MonkeyLoader.cs index 69a41e6..4985316 100644 --- a/MonkeyLoader/MonkeyLoader.cs +++ b/MonkeyLoader/MonkeyLoader.cs @@ -41,7 +41,7 @@ namespace MonkeyLoader /// public sealed class MonkeyLoader : IConfigOwner, IShutdown, IIdentifiableCollection, INestedIdentifiableCollection, INestedIdentifiableCollection, - INestedIdentifiableCollection, INestedIdentifiableCollection + INestedIdentifiableCollection, INestedIdentifiableCollection, INestedIdentifiableCollection { /// /// All the currently loaded and still active mods of this loader, kept in topological order. @@ -98,6 +98,9 @@ IEnumerable INestedIdentifiableCollection.Items IEnumerable IIdentifiableOwner.Items => Config.Yield(); + IEnumerable INestedIdentifiableCollection.Items + => Config.Yield().Concat(_allMods.Select(mod => mod.Config)); + /// /// Gets the json serializer used by this loader and any mods it loads.
/// Will be populated with any converters picked up from game integration packs. diff --git a/MonkeyLoader/MonkeyLoader.csproj b/MonkeyLoader/MonkeyLoader.csproj index 0c9f496..c2f6e1b 100644 --- a/MonkeyLoader/MonkeyLoader.csproj +++ b/MonkeyLoader/MonkeyLoader.csproj @@ -11,7 +11,7 @@ True MonkeyLoader Banane9 - 0.22.7-beta + 0.22.8-beta A convenience and extendability focused mod loader using NuGet packages. README.md LGPL-3.0-or-later