Investigate tolerances of Player->checkGroundState()
(more accurate onGround
checks)
#6547
Labels
Category: Gameplay
Related to Minecraft gameplay experience
Type: Enhancement
Contributes features or other improvements to PocketMine-MP
Problem description
Currently, players who are as far as 0.2 blocks above the ground will be considered "on ground", as seen here:
PocketMine-MP/src/player/Player.php
Lines 1235 to 1236 in 9cab72e
This was necessary in the days before
PlayerAuthInputPacket
as the movement updates were sent at a maximum rate of once per tick, meaning a jumping player could hit the ground and bounce back up again in between packets arriving on the server.Proposed solution
It may be possible to reduce this tolerance in newer versions, which would fix issues like the one seen in #6500.
It depends whether or not the client consistently sends a movement update upon hitting the ground. This wasn't the case with
MovePlayerPacket
, but might work better withPlayerAuthInputPacket
.Alternative solutions that don't require API changes
The text was updated successfully, but these errors were encountered: