Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
sgkoishi committed Oct 21, 2024
1 parent 45c6ebc commit debf829
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/WorldGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,12 @@ private void MMHook_WorldGen_TileFrame(On.Terraria.WorldGen.orig_TileFrame orig,
{
return;
}
var pos = (((ulong) i) << 32) | ((uint) j);
var type = Terraria.Main.tile[i, j].type;
orig.Invoke(i, j, resetFrame, noBreak);
if (type != Terraria.Main.tile[i, j].type && this.config.Mitigation.Value.RecursiveTileBreak.Value && !this._pendingTileFrame.Contains(pos))
{
this._pendingTileFrame.Add((((ulong) i) << 32) | ((uint) j));
this._pendingTileFrame.Add(pos);
}
}
}

0 comments on commit debf829

Please sign in to comment.