From 5d09c9bb87bb0d6a2824ec7a04cf3b06b8a2a5d5 Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Sun, 23 Feb 2025 21:42:19 +0000 Subject: [PATCH] fix event duplication --- QSB/QSBCore.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/QSB/QSBCore.cs b/QSB/QSBCore.cs index d71ad81f..2b975ca1 100644 --- a/QSB/QSBCore.cs +++ b/QSB/QSBCore.cs @@ -363,14 +363,12 @@ public class QSBCore : ModBehaviour { DebugSettings.Update(config); + Application.logMessageReceived -= OnDebugLog; + if (DebugSettings.HookDebugLogs) { Application.logMessageReceived += OnDebugLog; } - else - { - Application.logMessageReceived -= OnDebugLog; - } // Configure gets called before Start, so these might not exist yet if (GetComponent() != null)