Wynntils / Wynntils-Legacy

Wynntils is a Wynncraft Mod that seeks to enhance the user's gameplay with a variety of customizable options and additions.
https://wynntils.com
GNU Affero General Public License v3.0
157 stars 90 forks source link

FIX: Mounting horse when sprinting uses stamina #515

Closed LapinoLapidus closed 1 year ago

LapinoLapidus commented 2 years ago

Currently, whenever you sprint and mount your horse, your stamina bar will keep running out until you remount it while not sprinting. This one-liner fixes that by stopping the sprinting of the player. I've tried restoring the sprint status after mounting but then the stamina bar runs out again, maybe there needs to be a little wait time? Not sure how you'd like me to implement that though as that may be confusing for the end user, so I'll just leave it like this for now

McPlayHD commented 2 years ago

What happens if you sprint, mount your horse, and then dismount again all while keep sprinting? Will the server then not think that you are not sprinting but since you are sprinting locally it will lag you back or something?