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.
Can confirm in 1.21.2 pre-4