mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-15 20:37:42 +01:00
More expressive code
This commit is contained in:
parent
8edbc0ee78
commit
87adb2dfb7
2 changed files with 4 additions and 3 deletions
|
|
@ -301,7 +301,7 @@ internal class LocalPlugin : IAsyncDisposable
|
|||
throw new PluginPreconditionFailedException($"Unable to load {this.Name}, game is newer than applicable version {this.manifest.ApplicableVersion}");
|
||||
|
||||
// We want to allow loading dev plugins with a lower API level than the current Dalamud API level, for ease of development
|
||||
if (this.manifest.EffectiveApiLevel < PluginManager.DalamudApiLevel && !pluginManager.LoadAllApiLevels && !this.IsDev)
|
||||
if (!pluginManager.LoadAllApiLevels && !this.IsDev && this.manifest.EffectiveApiLevel < PluginManager.DalamudApiLevel)
|
||||
throw new PluginPreconditionFailedException($"Unable to load {this.Name}, incompatible API level {this.manifest.EffectiveApiLevel}");
|
||||
|
||||
// We might want to throw here?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue