Skip to content

Commit 4ed11e1

Browse files
committed
ModuleScript: Fix logs clearing strikes
1 parent e3b3edd commit 4ed11e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/MonoBehaviours/ModuleScript.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,9 @@ private void TimerTickEditor(in KMBombInfo bombInfo)
455455

456456
private void RemoveStrikeOnException(string condition, string stackTrace, LogType type)
457457
{
458+
if (type != LogType.Exception || !IsLogFromThis(stackTrace))
459+
return;
460+
458461
var bomb = (Bomb)Bomb(gameObject);
459462

460463
bomb.NumStrikes--;

0 commit comments

Comments
 (0)