Steps to reproduce:
Build the following setup in a world with the Minecart Improvements experiment enabled:
[media]Push the minecart a bit
Break the powered rail underneath the minecart
Break the block underneath the minecart
Observed result:
Whatever the minecart's x, z values were, it will snap onto the center of the rail.
Expected result:
The minecart will keep its x, z values like in 1.21.1 and below.
Fixed in 24w34a:
[media]