As the title says, pressing sneak always performs the roll as long as the player is not touching the ground, which is annoying when wanting to get to the bottom of a pool for example, and is extremely OP when flying as it essentially gives free boosting.
The check on line 226 of PlayerEntityMixin should probably be more restrictive, checking if :
The player doesn't have an elytra equipped or is not flying (I don't remember if there is such a function)
As the title says, pressing sneak always performs the roll as long as the player is not touching the ground, which is annoying when wanting to get to the bottom of a pool for example, and is extremely OP when flying as it essentially gives free boosting.
The check on line 226 of PlayerEntityMixin should probably be more restrictive, checking if :