From e0458bbf31311b034a39abe01043add2d38f2b98 Mon Sep 17 00:00:00 2001 From: SGKoishi Date: Sat, 10 Aug 2024 09:49:22 +0900 Subject: [PATCH] Fix typo --- Core/Mitigations.cs | 4 +++- Core/Statistics.cs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/Mitigations.cs b/Core/Mitigations.cs index 79ea66f..efde1a1 100644 --- a/Core/Mitigations.cs +++ b/Core/Mitigations.cs @@ -328,15 +328,17 @@ private void TAHook_Mitigation_GameUpdate(EventArgs _) if (mitigation.RecursiveTileBreak) { var kt = 0; + var count = this._pendingKilled.Count; while (kt < this._pendingKilled.Count) { var item = this._pendingKilled[kt]; var ti = (int) (item >> 32); var tj = (int) item; - Terraria.WorldGen.TileFrame(ti, tj); + Terraria.WorldGen.SquareTileFrame(ti, tj); kt++; } + this.Statistics.MitigationNewTileKillTriggered += this._pendingKilled.Count - count; this._pendingKilled.Clear(); } } diff --git a/Core/Statistics.cs b/Core/Statistics.cs index f1a52b8..63bd792 100644 --- a/Core/Statistics.cs +++ b/Core/Statistics.cs @@ -17,6 +17,7 @@ public class DebugStat public int MitigationRejectedSicknessHeal; public int MitigationTerminatedConnection; public int MitigationCoinReduced; + public int MitigationNewTileKillTriggered; public int IndexMismatch; public int ModdedEarlyChatSpam; public int ModdedFakeName;