@@ -32,10 +32,10 @@ namespace ModFramework;
3232public static class CecilHelpersExtensions
3333{
3434 public static ILCursor GetILCursor ( this MonoMod . MonoModder modder , Expression < Action > reference , bool followRedirect = true )
35- => new ILCursor ( new ILContext ( modder . Module . GetDefinition < MethodDefinition > ( reference , followRedirect ) ) { ReferenceBag = RuntimeILReferenceBag . Instance } ) ;
35+ => new ILCursor ( new ILContext ( modder . Module . GetDefinition < MethodDefinition > ( reference , followRedirect ) ) ) ;
3636
3737 public static ILCursor GetILCursor ( this MonoMod . MonoModder modder , MethodDefinition method )
38- => new ILCursor ( new ILContext ( method ) { ReferenceBag = RuntimeILReferenceBag . Instance } ) ;
38+ => new ILCursor ( new ILContext ( method ) ) ;
3939
4040 public static MethodDefinition GetMethodDefinition ( this MonoMod . MonoModder modder , Expression < Action > reference , bool followRedirect = true )
4141 => modder . Module . GetDefinition < MethodDefinition > ( reference , followRedirect : followRedirect ) ;
@@ -46,10 +46,10 @@ public static TypeDefinition GetDefinition<TType>(this MonoMod.MonoModder modder
4646 => modder . Module . GetDefinition < TType > ( ) ;
4747
4848 public static ILCursor GetILCursor ( this ModuleDefinition module , Expression < Action > reference )
49- => new ILCursor ( new ILContext ( module . GetDefinition < MethodDefinition > ( reference ) ) { ReferenceBag = RuntimeILReferenceBag . Instance } ) ;
49+ => new ILCursor ( new ILContext ( module . GetDefinition < MethodDefinition > ( reference ) ) ) ;
5050
5151 public static ILCursor GetILCursor ( this MethodDefinition method )
52- => new ILCursor ( new ILContext ( method ) { ReferenceBag = RuntimeILReferenceBag . Instance } ) ;
52+ => new ILCursor ( new ILContext ( method ) ) ;
5353
5454 public static MethodReference GetReference < TReturn > ( this ModuleDefinition module , Expression < Func < TReturn > > reference )
5555 => ( MethodReference ) module . GetMemberReference ( reference ) ;
0 commit comments