Player's OnGround tag doesn't update when riding a vehicle
When riding a vehicle, the OnGround tag doesn't update.
How to reproduce:
- Summon a pig and place a saddle on it.
- While flying in the air, execute the following command:
/data get entity @s OnGround
→
The tag is set to false (0b). - Ride the pig without touching the ground.
- Execute the command from step 2 again.
→
The tag is set to false (0b). - Dismount the pig.
- While on the ground, execute the command from step 2 again.
→
The tag is set to true (1b). - Ride the pig again.
- Execute the command from step 2 again.
→
The tag is set to true (1b).
Expected result:
The OnGround tag would always be false while riding an entity, like in previous versions.
Observed result:
The OnGround tag keeps its value from before riding an entity, which sometimes makes it inaccurate.
2024-10-15, 12:29 PM
2024-10-21, 01:25 PM
2024-10-21, 01:25 PM
4
2