[PR #5542] [MERGED] Stop riding a remote vehicle that is gone (seated pose kept across worlds) #6343

Closed
opened 2026-11-03 06:18:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5542
Author: @kacpherek
Created: 10/31/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/remote-ride-gone-vehicle


📝 Commits (1)

  • 0bf4904 Stop riding a remote vehicle that is gone

📊 Changes

1 file changed (+10 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/remote_vehicles.rs (+10 -2)

📄 Description

What and why

After riding a nautilus (or a minecart) and leaving, the player could stay in the seated pose with no vehicle: no movement, sneak did nothing (#5453). remote_ride kept Game.riding and returned true when no mob, boat, cushion or minecart had the id, so the seat never went away. That happens after a respawn into another level with KEEP_ENTITY_DATA (the id is kept) or when the vehicle is removed. Vanilla Entity.baseTick stops riding a vehicle that is removed (isPassenger() && getVehicle().isRemoved() → stopRiding()), and Horizon's local tick_riding already does the same; the remote path now does too.

Fixes #5453.

Vanilla reference

Entity.baseTick, Entity.stopRiding; ClientPacketListener.handleRespawn never re-attaches a vehicle (pure vanilla 26.3 decompile).

How it was checked

cargo check -p horizon-client --tests passes; rustfmt clean. Not run in game; the single-player new-world case from the report was not traced to a separate stale write.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/5542 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/remote-ride-gone-vehicle` --- ### 📝 Commits (1) - [`0bf4904`](https://github.com/horizon-rust/horizon/commit/0bf4904595903022a8ee1c1c0dab3e5b78f1a731) Stop riding a remote vehicle that is gone ### 📊 Changes **1 file changed** (+10 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote_vehicles.rs` (+10 -2) </details> ### 📄 Description ## What and why After riding a nautilus (or a minecart) and leaving, the player could stay in the seated pose with no vehicle: no movement, sneak did nothing (#5453). `remote_ride` kept `Game.riding` and returned true when no mob, boat, cushion or minecart had the id, so the seat never went away. That happens after a respawn into another level with KEEP_ENTITY_DATA (the id is kept) or when the vehicle is removed. Vanilla `Entity.baseTick` stops riding a vehicle that is removed (`isPassenger() && getVehicle().isRemoved()` → `stopRiding()`), and Horizon's local `tick_riding` already does the same; the remote path now does too. Fixes #5453. ## Vanilla reference `Entity.baseTick`, `Entity.stopRiding`; `ClientPacketListener.handleRespawn` never re-attaches a vehicle (pure vanilla 26.3 decompile). ## How it was checked `cargo check -p horizon-client --tests` passes; rustfmt clean. Not run in game; the single-player new-world case from the report was not traced to a separate stale write. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:18:46 +07:00
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#6343
No description provided.