[PR #1551] [MERGED] Server-thread vehicle fixes: boats and minecarts in lava, boat collision, cart pushing, creative placing #3582

Closed
opened 2026-11-03 04:10:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1551
Author: @levzzz5154
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @ludovic111

Base: main ← Head: fix/vehicles-server-thread


📝 Commits (10+)

  • 9624e99 Clear a creative player's dig after the block breaks on the server
  • ebd25ab Run horizon-ctl block commands in the server's world
  • e2dd6b6 Make boats solid to players
  • 826cf8f Burn boats and minecarts in lava, and place boats on lava
  • f688726 Let server players push minecarts, without pushing the player back
  • a713dbd Break vehicles in lava on their first tick, as vanilla does
  • 704931e Keep horizon-ctl getblock on a client's copy, run server ones in the owner's level
  • 0a3965a Check vehicles on both sides of a LAN game
  • 8a8348c Merge origin/main into fix/vehicles-server-thread
  • 8a04e18 Measure the minecart push with the player standing half in it

📊 Changes

10 files changed (+312 additions, -51 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+2 -2)
📝 crates/horizon-client/src/game/blockctl.rs (+24 -0)
📝 crates/horizon-client/src/game/boats.rs (+80 -11)
📝 crates/horizon-client/src/game/consume.rs (+1 -1)
📝 crates/horizon-client/src/game/ghasts.rs (+10 -3)
📝 crates/horizon-client/src/game/integrated.rs (+16 -0)
📝 crates/horizon-client/src/game/lan_actions.rs (+11 -0)
📝 crates/horizon-client/src/game/minecarts.rs (+72 -32)
📝 crates/horizon-client/src/game/remote.rs (+2 -2)
📝 tools/lan_e2e.py (+94 -0)

📄 Description

🤖 Opened by levzzz's AI agent (Claude Code), not by levzzz themself.

Vehicle and server-thread fixes found while playing single player on the server thread.

  • Creative block placing: a creative player's dig stayed set on the server after the block broke (the client never sends STOP), so tick_mining kept breaking whatever was placed in that cell next. The dig is now cleared after a creative START (ServerPlayerGameMode.handleBlockBreakAction).
  • horizon-ctl block commands: setblock, fill, getblock and container ran on the client's copy of the world only. With the server thread on they now run on the server; against a remote server, setblock/fill go out as chat commands.
  • Boats are solid to players: boats join happy ghasts in the player's entity collision list, so players can't walk through them and step up onto them.
  • Lava: boats and minecarts take lava damage and burn for 15 seconds (lavaHurt, remainingFireTicks), break and drop their items; TNT minecarts prime from fire. Boats can be placed on lava (ClipContext.Fluid.ANY).
  • Pushing minecarts: server players (server thread, LAN) now push carts with vanilla's push math. The push back on the player is dropped in both modes: vanilla syncs it only to other players (needsSync → sendToTrackingPlayers), so the pusher's own client never feels it.

Checked against the 26.3 sources and tools/rea_vanilla.py; tested by hand on the server thread with horizon-ctl.

python3 tools/pr_ready.py --quick --base upstream/main
| Scope | ✅ 8 files, +238 −42 |
| Cargo.lock | ✅ unchanged |
| Public tree | ✅ |
| rustfmt | ✅ |
| clippy | ✅ |
| tests: horizon-client | ✅ 1202 passed |
| doc tests | ✅ 0 passed |
| Parity | ➖ 250 affected, to run in CI (--quick) |

🤖 Generated with Claude Code


🔄 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/1551 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/vehicles-server-thread` --- ### 📝 Commits (10+) - [`9624e99`](https://github.com/horizon-rust/horizon/commit/9624e998010c6a32da5d069d1df1c238ea82d312) Clear a creative player's dig after the block breaks on the server - [`ebd25ab`](https://github.com/horizon-rust/horizon/commit/ebd25abd0eada5a4ae9cf3c174c3502d069979a3) Run horizon-ctl block commands in the server's world - [`e2dd6b6`](https://github.com/horizon-rust/horizon/commit/e2dd6b67df6f5ba03393e56f2f1e66fd88dc6613) Make boats solid to players - [`826cf8f`](https://github.com/horizon-rust/horizon/commit/826cf8ffe6c90abfe7b4b3c4527f27d9127f7ea5) Burn boats and minecarts in lava, and place boats on lava - [`f688726`](https://github.com/horizon-rust/horizon/commit/f688726b347757ddaf2fdde4a8407d641de579cc) Let server players push minecarts, without pushing the player back - [`a713dbd`](https://github.com/horizon-rust/horizon/commit/a713dbd46dba5e0370564d07d0fcf630ec086e40) Break vehicles in lava on their first tick, as vanilla does - [`704931e`](https://github.com/horizon-rust/horizon/commit/704931ed14f7cb14e29f27ede60aba3e59df49ff) Keep horizon-ctl getblock on a client's copy, run server ones in the owner's level - [`0a3965a`](https://github.com/horizon-rust/horizon/commit/0a3965a7b179e36d801bcd50122249e4c096412d) Check vehicles on both sides of a LAN game - [`8a8348c`](https://github.com/horizon-rust/horizon/commit/8a8348c93f7d33fa2296d501b12e03b5a638177c) Merge origin/main into fix/vehicles-server-thread - [`8a04e18`](https://github.com/horizon-rust/horizon/commit/8a04e18b9167d39bdd2dbb08575bf82dc3f68d25) Measure the minecart push with the player standing half in it ### 📊 Changes **10 files changed** (+312 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+2 -2) 📝 `crates/horizon-client/src/game/blockctl.rs` (+24 -0) 📝 `crates/horizon-client/src/game/boats.rs` (+80 -11) 📝 `crates/horizon-client/src/game/consume.rs` (+1 -1) 📝 `crates/horizon-client/src/game/ghasts.rs` (+10 -3) 📝 `crates/horizon-client/src/game/integrated.rs` (+16 -0) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+11 -0) 📝 `crates/horizon-client/src/game/minecarts.rs` (+72 -32) 📝 `crates/horizon-client/src/game/remote.rs` (+2 -2) 📝 `tools/lan_e2e.py` (+94 -0) </details> ### 📄 Description > 🤖 Opened by levzzz's AI agent (Claude Code), not by levzzz themself. Vehicle and server-thread fixes found while playing single player on the server thread. - **Creative block placing:** a creative player's dig stayed set on the server after the block broke (the client never sends STOP), so `tick_mining` kept breaking whatever was placed in that cell next. The dig is now cleared after a creative START (`ServerPlayerGameMode.handleBlockBreakAction`). - **horizon-ctl block commands:** `setblock`, `fill`, `getblock` and `container` ran on the client's copy of the world only. With the server thread on they now run on the server; against a remote server, `setblock`/`fill` go out as chat commands. - **Boats are solid to players:** boats join happy ghasts in the player's entity collision list, so players can't walk through them and step up onto them. - **Lava:** boats and minecarts take lava damage and burn for 15 seconds (`lavaHurt`, `remainingFireTicks`), break and drop their items; TNT minecarts prime from fire. Boats can be placed on lava (`ClipContext.Fluid.ANY`). - **Pushing minecarts:** server players (server thread, LAN) now push carts with vanilla's push math. The push back on the player is dropped in both modes: vanilla syncs it only to other players (`needsSync` → `sendToTrackingPlayers`), so the pusher's own client never feels it. Checked against the 26.3 sources and `tools/rea_vanilla.py`; tested by hand on the server thread with horizon-ctl. ``` python3 tools/pr_ready.py --quick --base upstream/main | Scope | ✅ 8 files, +238 −42 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | rustfmt | ✅ | | clippy | ✅ | | tests: horizon-client | ✅ 1202 passed | | doc tests | ✅ 0 passed | | Parity | ➖ 250 affected, to run in CI (--quick) | ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:10:35 +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#3582
No description provided.