Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sgkoishi committed Aug 10, 2024
1 parent 1a0b6d5 commit e0458bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Core/Mitigations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down
1 change: 1 addition & 0 deletions Core/Statistics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e0458bb

Please sign in to comment.