mojira.dev

LeonTG

Assigned

No issues.

Comments

(there should be an edit button) I’m gonna make an assumption that it is checking keyboard so the toggle for attacking and toggle for placing blocks/using items, which are both mouse by default, don’t keep running when you close a GUI

so my guess is then the best fix would be checking if the default key is mouse, or some other similar solution

It seems to be happening because ToggleKeyMapping is doing this.key.getType() == Type.KEYBOARD when determining if it should re-enable the sprinting/sneaking in method shouldRestoreStateOnScreenClosed()

Removing this check fixed the issue on my end, tho I assume the check is there for a reason I don’t know about, but if not, it should be as simple as removing that to fix this issue

Can confirm this has been happening since MC-163218 was fixed

thought it was an oversight when that was implemented since then, only realized it was only an issue of bound to a mouse key today

hope it gets resolved soon, very annoying having to constantly re-enable my sprinting when using the chat or inventory