mod: 修改UpDownGrabLeaf中的抓取四叶印(某些模式下的交互)按键,直接使用KeyBindingsConfig中的值

This commit is contained in:
Ayu0K 2025-01-04 22:22:41 +08:00
parent e7d76cdae1
commit c4b705c350

View File

@ -25,7 +25,7 @@ public class UpDownGrabLeaf : IActionHandler
// kbPress('w'); // 飞行
while (i > 0 && !ct.IsCancellationRequested)
{
Simulation.SendInput.Keyboard.KeyDown(User32.VK.VK_T);
Simulation.SendInput.Keyboard.KeyDown(TaskContext.Instance().Config.KeyBindingsConfig.InteractionInSomeMode.ToVK());
if (i % 10 == 0)
{
y = -y;