cabaletta / baritone

google maps for block game
GNU Lesser General Public License v3.0
7.1k stars 1.42k forks source link

Fix sprinting button #251

Closed leijurv closed 5 years ago

leijurv commented 5 years ago

Right now, PathExecutor directly calls setSprinting, this can result in things the player couldn't normally do, like stop sprinting without letting go of W, or starting a sprint in midair in strange scenarios. It should instead pass through the SPRINT keybind to InputOverrideHandler, which should hold down SPRINT on a rising edge, and do setSprinting(false) on a falling edge.

leijurv commented 5 years ago

This is tricky because EntityPlayerSP checks the global gameSettings.keyBindSprint =( bad for bots

ZeroMemes commented 5 years ago

Fixed in 20b03d00049dc3f4a75c8d8e9aa83eca1bd7ac55