For anyone who comes across this issue today, the issue seems to have been fixed in the old version of LWJGL. I'm guessing from this commit. However, I'm not aware of any existing builds that include the fix, and pre-lwjgl3 minecraft uses a build from before the fix. To use the latest code, you can compile the jar yourself from https://github.com/LWJGL/lwjgl, or download the jar I've compiled from https://afuous.github.io/lwjgl-git-20161208.jar (ipfs). Here's how I'm using this jar with the new launcher (1.8.9 can be replaced by any other version, including modded):
Create a directory .minecraft/libraries/org/lwjgl/lwjgl/lwjgl/git-20161208 and put the new jar lwjgl-git-20161208.jar inside it
Copy .minecraft/versions/1.8.9 to .minecraft/versions/1.8.9-lwjglpatch
Inside .minecraft/versions/1.8.9-lwjglpatch, rename 1.8.9.jar and 1.8.9.json to 1.8.9-lwjglpatch.jar and 1.8.9-lwjglpatch.json
For anyone who comes across this issue today, the issue seems to have been fixed in the old version of LWJGL. I'm guessing from this commit. However, I'm not aware of any existing builds that include the fix, and pre-lwjgl3 minecraft uses a build from before the fix. To use the latest code, you can compile the jar yourself from https://github.com/LWJGL/lwjgl, or download the jar I've compiled from https://afuous.github.io/lwjgl-git-20161208.jar (ipfs). Here's how I'm using this jar with the new launcher (1.8.9 can be replaced by any other version, including modded):
Create a directory .minecraft/libraries/org/lwjgl/lwjgl/lwjgl/git-20161208 and put the new jar lwjgl-git-20161208.jar inside it
Copy .minecraft/versions/1.8.9 to .minecraft/versions/1.8.9-lwjglpatch
Inside .minecraft/versions/1.8.9-lwjglpatch, rename 1.8.9.jar and 1.8.9.json to 1.8.9-lwjglpatch.jar and 1.8.9-lwjglpatch.json
Make two modifications to 1.8.9-lwjglpatch.json:
Replace
with
Replace
with
If you compiled your own jar, make sure to replace the "sha1" and "size" fields with the sha1sum and size in bytes of your jar.
Now you can select the 1.8.9-lwjglpatch version from your launcher and hotkey to 2 and 6 while sneaking!
Instructions to compile the jar yourself:
Install the Ant build tool for java
Run
The jar will be created at libs/lwjgl.jar