Mojira Archive
MC-277625

Player's OnGround tag doesn't update when riding a vehicle

When riding a vehicle, the OnGround tag doesn't update.

How to reproduce:

  1. Summon a pig and place a saddle on it.
  2. While flying in the air, execute the following command:
    /data get entity @s OnGround

    The tag is set to false (0b).

  3. Ride the pig without touching the ground.
  4. Execute the command from step 2 again.
    The tag is set to false (0b).
  5. Dismount the pig.
  6. While on the ground, execute the command from step 2 again.
    The tag is set to true (1b).
  7. Ride the pig again.
  8. 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.

Fixed

Percy

2024-10-15, 12:29 PM

2024-10-21, 01:25 PM

2024-10-21, 01:25 PM

4

2

Confirmed

Normal

Platform

Player

1.21.2 Pre-Release 3, 1.21.2 Pre-Release 5

1.21.2 Release Candidate 2