From 0d49a91bacf52049bf7aaa3e7c60e91b962eb838 Mon Sep 17 00:00:00 2001 From: Stephen Thiebaud Date: Thu, 4 Dec 2025 22:48:27 -0600 Subject: [PATCH] feat: add idisposable to manipulatorbatch --- ILEditing/ManipulatorBatch.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ILEditing/ManipulatorBatch.cs b/ILEditing/ManipulatorBatch.cs index e98d9aec28..650a0d0b4f 100644 --- a/ILEditing/ManipulatorBatch.cs +++ b/ILEditing/ManipulatorBatch.cs @@ -4,9 +4,6 @@ using MonoMod.Cil; namespace CalamityMod.ILEditing; -// TODO: We can directly add the IDisposable interface if we update the C# -// version the project targets. - /// /// Simple helper object to capture multiple IL edits to apply in a single /// pass to avoid additional overhead. @@ -15,7 +12,7 @@ namespace CalamityMod.ILEditing; /// Since multiple edits are applied at once, a failure from one edit will /// cause every edit to fail. Use with caution. /// -internal readonly ref struct ManipulatorBatch() +internal readonly ref struct ManipulatorBatch() : IDisposable { public required Action ManipulatorProvider { get; init; }