From 912a7b04ce180e337af9beeef2d1393b040c1ba8 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Sun, 3 Nov 2024 19:24:52 +0100 Subject: [PATCH] Reflector: Don't warn for null plugins (i.e. disabled) if suppressErrors is set --- DalamudReflector.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DalamudReflector.cs b/DalamudReflector.cs index 23730a0..43611c3 100644 --- a/DalamudReflector.cs +++ b/DalamudReflector.cs @@ -81,7 +81,8 @@ public sealed class DalamudReflector : IDisposable .GetField("instance", BindingFlags.NonPublic | BindingFlags.Instance)!.GetValue(t); if (plugin == null) { - _pluginLog.Warning($"[DalamudReflector] Found requested plugin {internalName} but it was null"); + if (!suppressErrors) + _pluginLog.Warning($"[DalamudReflector] Found requested plugin {internalName} but it was null"); } else {