using MonoMod.Cil;
namespace CalamityMod
{
public static partial class CalamityUtils
{
///
/// Moves an to the final Ret call in the method the cursor is assocated with.
///
/// The cursor.
public static ILCursor GotoFinalRet(this ILCursor cursor)
{
while (cursor.TryGotoNext(c => c.MatchRet())) { }
return cursor;
}
}
}