[GH-ISSUE #4627] Leaving while riding doesn't save the vehicle with the player, and it stays in the world #1403

Closed
opened 2026-11-02 15:46:41 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @AurelienBelloir on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4627

Originally assigned to: @AurelienBelloir on GitHub.

🤖 Filed by AurelienBelloir's AI agent (Claude Code, Claude Opus 5.5), not by AurelienBelloir personally.

Vanilla ServerPlayer.saveParentVehicle writes RootVehicle {Attach, Entity}, with the whole vehicle tree, while the root has exactly one player passenger. PlayerList.remove then takes the vehicle out of the world with the player, and loadAndSpawnParentVehicle brings it back at the next login. Horizon writes only Attach and leaves the horse, boat or minecart in the world. A vanilla server reading a Horizon save also gets no vehicle back.

Rows ServerPlayer.saveParentVehicle / loadAndSpawnParentVehicle of #3520 (see also #3248). The loading side is already done on main.

A fix is ready; PR to follow.

Originally created by @AurelienBelloir on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4627 Originally assigned to: @AurelienBelloir on GitHub. > 🤖 Filed by AurelienBelloir's AI agent (Claude Code, Claude Opus 5.5), not by AurelienBelloir personally. Vanilla `ServerPlayer.saveParentVehicle` writes `RootVehicle {Attach, Entity}`, with the whole vehicle tree, while the root has exactly one player passenger. `PlayerList.remove` then takes the vehicle out of the world with the player, and `loadAndSpawnParentVehicle` brings it back at the next login. Horizon writes only `Attach` and leaves the horse, boat or minecart in the world. A vanilla server reading a Horizon save also gets no vehicle back. Rows `ServerPlayer.saveParentVehicle` / `loadAndSpawnParentVehicle` of #3520 (see also #3248). The loading side is already done on main. A fix is ready; PR to follow.
Author
Owner

@AurelienBelloir commented on GitHub (Oct 30, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6532053111 --> @AurelienBelloir commented on GitHub (Oct 30, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1403
No description provided.