@@ -51,13 +51,16 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
5151 new ( OpCodes . Callvirt , PropertyGetter ( typeof ( Scp330Bag ) , nameof ( Scp330Bag . Owner ) ) ) ,
5252 new ( OpCodes . Call , Method ( typeof ( Player ) , nameof ( Player . Get ) , new [ ] { typeof ( ReferenceHub ) } ) ) ,
5353
54+ // this
55+ new ( OpCodes . Ldarg_0 ) ,
56+
5457 // ICandy
5558 new ( OpCodes . Ldloc_0 ) ,
5659
5760 // true
5861 new ( OpCodes . Ldc_I4_1 ) ,
5962
60- // EatingScp330EventArgs ev = new(player, candy, true )
63+ // EatingScp330EventArgs ev = new(Player, Scp330Bag, ICandy, bool )
6164 new ( OpCodes . Newobj , GetDeclaredConstructors ( typeof ( EatingScp330EventArgs ) ) [ 0 ] ) ,
6265 new ( OpCodes . Dup ) ,
6366
@@ -84,10 +87,13 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
8487 new ( OpCodes . Callvirt , PropertyGetter ( typeof ( Scp330Bag ) , nameof ( Scp330Bag . Owner ) ) ) ,
8588 new ( OpCodes . Call , Method ( typeof ( Player ) , nameof ( Player . Get ) , new [ ] { typeof ( ReferenceHub ) } ) ) ,
8689
90+ // this
91+ new ( OpCodes . Ldarg_0 ) ,
92+
8793 // ICandy
8894 new ( OpCodes . Ldloc_0 ) ,
8995
90- // EatenScp330EventArgs ev = new(player, candy )
96+ // EatenScp330EventArgs ev = new(Player, Scp330Bag, ICandy )
9197 new ( OpCodes . Newobj , GetDeclaredConstructors ( typeof ( EatenScp330EventArgs ) ) [ 0 ] ) ,
9298
9399 // Handlers.Scp330.OnEatenScp330(ev)
0 commit comments