From 7c1d811158361814aa92debe34848fd9fcb15dfc Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Wed, 6 Jan 2021 23:40:21 -0600 Subject: [PATCH] Old IPA plugins now no longer have an empty section if there are none --- IPA.Loader/Loader/PluginManager.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/IPA.Loader/Loader/PluginManager.cs b/IPA.Loader/Loader/PluginManager.cs index 07c682ce..77634b75 100644 --- a/IPA.Loader/Loader/PluginManager.cs +++ b/IPA.Loader/Loader/PluginManager.cs @@ -449,11 +449,14 @@ namespace IPA.Loader Logger.log.Info($"{plugin.Metadata.Name} ({plugin.Metadata.Id}): {plugin.Metadata.Version}"); } Logger.log.Info("-----------------------------"); - foreach (var plugin in _ipaPlugins) + if (_ipaPlugins.Count > 0) { - Logger.log.Info($"{plugin.Name}: {plugin.Version}"); + foreach (var plugin in _ipaPlugins) + { + Logger.log.Info($"{plugin.Name}: {plugin.Version}"); + } + Logger.log.Info("-----------------------------"); } - Logger.log.Info("-----------------------------"); } private static IEnumerable LoadPluginsFromFile(string file)