private void NewDrawMenu(ILContext il)
        {
            ILCursor c        = new ILCursor(il).Goto(0, 0, false);
            ILCursor ilcursor = c;

            Func <Instruction, bool>[] array = new Func <Instruction, bool> [1];
            array[0] = ((Instruction i) => ILPatternMatchingExt.MatchLdsfld(i, typeof(Main).GetField("dayTime")));
            bool flag = !ilcursor.TryGotoNext(array);

            if (flag)
            {
                Logger.Info("Failed to change main menu.");
            }
            else
            {
                c.Emit(OpCodes.Call, typeof(SpookyTerraria).GetMethod("DrawMenuNew", BindingFlags.NonPublic | BindingFlags.Static));
            }
        }