[PR #2728] [MERGED] Launch a Riptide trident on a server's client when the use is released #4572

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2728
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/2715-riptide


📝 Commits (2)

  • a05dc35 Launch a Riptide trident on a server's client when the use is released
  • 063b6ee Merge main into fix/2715-riptide

📊 Changes

2 files changed (+26 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game/remote.rs (+12 -1)
📝 crates/horizon-client/src/game/trident.rs (+14 -3)

📄 Description

What and why

On the server thread (the default single player), a Riptide trident did nothing: no launch and no spin animation.

When the use button is let go, the client sends RELEASE_USE_ITEM and clears its own use, but it never ran the item's release. The server runs TridentItem.releaseUsing for its copy of the player, but the player's motion is decided by the client, so the push and the spin never reached the window.

Vanilla's MultiPlayerGameMode.releaseUsingItem also calls releaseUsing on the client. Now a server's client does that for a trident: the Riptide push, the spin attack (animation and pose) and the lift off the ground. The stack damage, the sound and the thrown trident stay with the server, so the client does not do them twice.

Fixes #2715.

Vanilla reference

  • MultiPlayerGameMode.releaseUsingItem
  • TridentItem.releaseUsing (player.push, startAutoSpinAttack, player.move)

Self-check

cargo check -p horizon-client passes.


🔄 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/2728 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/2715-riptide` --- ### 📝 Commits (2) - [`a05dc35`](https://github.com/horizon-rust/horizon/commit/a05dc35c3906ed7b2364e4de18b9474222578059) Launch a Riptide trident on a server's client when the use is released - [`063b6ee`](https://github.com/horizon-rust/horizon/commit/063b6ee2b740ff84803f09ea4d00cfcfa5c892ee) Merge main into fix/2715-riptide ### 📊 Changes **2 files changed** (+26 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+12 -1) 📝 `crates/horizon-client/src/game/trident.rs` (+14 -3) </details> ### 📄 Description ## What and why On the server thread (the default single player), a Riptide trident did nothing: no launch and no spin animation. When the use button is let go, the client sends RELEASE_USE_ITEM and clears its own use, but it never ran the item's release. The server runs `TridentItem.releaseUsing` for its copy of the player, but the player's motion is decided by the client, so the push and the spin never reached the window. Vanilla's `MultiPlayerGameMode.releaseUsingItem` also calls `releaseUsing` on the client. Now a server's client does that for a trident: the Riptide push, the spin attack (animation and pose) and the lift off the ground. The stack damage, the sound and the thrown trident stay with the server, so the client does not do them twice. Fixes #2715. ## Vanilla reference - `MultiPlayerGameMode.releaseUsingItem` - `TridentItem.releaseUsing` (`player.push`, `startAutoSpinAttack`, `player.move`) ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:18:09 +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#4572
No description provided.