chore: cleanup warnings, always load banned dev plugins

This commit is contained in:
goat 2023-01-23 23:53:18 +01:00
parent 9a32da7db8
commit d81f218155
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
4 changed files with 24 additions and 23 deletions

View file

@ -147,7 +147,7 @@ internal class LocalPlugin : IDisposable
}
var pluginManager = Service<PluginManager>.Get();
this.IsBanned = pluginManager.IsManifestBanned(this.Manifest);
this.IsBanned = pluginManager.IsManifestBanned(this.Manifest) && !this.IsDev;
this.BanReason = pluginManager.GetBanReason(this.Manifest);
this.SaveManifest();
@ -320,7 +320,7 @@ internal class LocalPlugin : IDisposable
throw new ArgumentOutOfRangeException(this.State.ToString());
}
if (pluginManager.IsManifestBanned(this.Manifest))
if (pluginManager.IsManifestBanned(this.Manifest) && !this.IsDev)
throw new BannedPluginException($"Unable to load {this.Name}, banned");
if (this.Manifest.ApplicableVersion < startInfo.GameVersion)