gavinsmod / gavinsextensiblemod

A Minecraft mod with a lot of cool features.
MIT License
29 stars 1 forks source link

No fall does not allow the player to crouch and move at the same time. #2

Closed GT3CH1 closed 2 years ago

GT3CH1 commented 2 years ago

I have tried to figure out how to allow the player to crouch + fly in a direction at a given time (like normal), but all it is doing right now is making the player jitter because the server is detecting the player is moving in an invalid way.

Bug is present in all branches.

Possible cause of bug is somewhere in this method I believe.

https://github.com/GT3CH1/minecraft-mod/blob/2989d6ea6f14d2065a2274dacaed92b7e1a7d781/src/main/java/com/peasenet/util/PlayerUtils.java#L143

GT3CH1 commented 2 years ago

Checking to see if the player is falling and sneaking might do the trick. testing now.