Skip to content

Commit 5d09c9b

Browse files
committed
fix event duplication
1 parent 1c7b895 commit 5d09c9b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

QSB/QSBCore.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,14 +363,12 @@ public override void Configure(IModConfig config)
363363
{
364364
DebugSettings.Update(config);
365365

366+
Application.logMessageReceived -= OnDebugLog;
367+
366368
if (DebugSettings.HookDebugLogs)
367369
{
368370
Application.logMessageReceived += OnDebugLog;
369371
}
370-
else
371-
{
372-
Application.logMessageReceived -= OnDebugLog;
373-
}
374372

375373
// Configure gets called before Start, so these might not exist yet
376374
if (GetComponent<DebugActions>() != null)

0 commit comments

Comments
 (0)