Reflector: Don't warn for null plugins (i.e. disabled) if suppressErrors is set

This commit is contained in:
Liza 2024-11-03 19:24:52 +01:00
parent 6dfc18ee6a
commit 912a7b04ce
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -81,6 +81,7 @@ public sealed class DalamudReflector : IDisposable
.GetField("instance", BindingFlags.NonPublic | BindingFlags.Instance)!.GetValue(t); .GetField("instance", BindingFlags.NonPublic | BindingFlags.Instance)!.GetValue(t);
if (plugin == null) if (plugin == null)
{ {
if (!suppressErrors)
_pluginLog.Warning($"[DalamudReflector] Found requested plugin {internalName} but it was null"); _pluginLog.Warning($"[DalamudReflector] Found requested plugin {internalName} but it was null");
} }
else else