This PR should resolve PrismarineJS/mineflayer#2796, the issue was that both lavaGravity and waterGravity were never set because proportionalLiquidGravity was not set to yet support 1.19, this later down the line caused issues, especially on line 459 because the statement would be evaluated as (entity.isInWater ? undefined : undefined) * gravityMultiplier thus returning NaN, throwing everything off and causing our y value to be NaN when we would send movement packets which caused the bot to be disconnected.
This PR should resolve PrismarineJS/mineflayer#2796, the issue was that both
lavaGravity
andwaterGravity
were never set becauseproportionalLiquidGravity
was not set to yet support 1.19, this later down the line caused issues, especially on line 459 because the statement would be evaluated as(entity.isInWater ? undefined : undefined) * gravityMultiplier
thus returning NaN, throwing everything off and causing our y value to be NaN when we would send movement packets which caused the bot to be disconnected.