hydraontopp_void/Void/Modules/ClickTP.cs
#region

using Void.ClientBase;
using Void.ClientBase.KeyBase;

#endregion

namespace Void.Modules
{
    internal class ClickTP : Module
    {
        public ClickTP() : base("ClickTP", (char)0x07, "Exploits")
        {
            Keymap.keyEvent += KeyPress;
        }

        private void KeyPress(object sender, KeyEvent e)
        {
            if (e.vkey != VKeyCodes.KeyDown) return;
            if (!enabled) return;
            if (e.key.ToString() != "MButton") return;
            var ivec = Game.SelectedBlock;
            var newPos = Base.Vec3(ivec.x, ivec.y + 1, ivec.z);
            Game.position = newPos;
        }
    }
}