[PR #2408] [MERGED] Empty a bundle by holding right click #4285

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

📋 Pull Request Information

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

Base: main ← Head: fix/bundle-dump-on-use


📝 Commits (4)

  • de808e3 Empty a bundle by holding right click
  • 4414c3c Merge main into fix/bundle-dump-on-use
  • f731ca1 Merge main into fix/bundle-dump-on-use
  • 38b508e Merge main into fix/bundle-dump-on-use

📊 Changes

3 files changed (+73 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+59 -0)
📝 crates/horizon-client/src/game/remote.rs (+11 -0)
📝 crates/horizon-items/src/bundle.rs (+3 -1)

📄 Description

What and why

Holding right click with a bundle in hand did nothing. In vanilla the bundle starts being used, drops one stack out right away, and then keeps dropping a stack every second tick (after the first 10 ticks) for up to 200 ticks, with a swing and the drop sounds.

Horizon never started a use for bundles, and the use tick had no case for them. Now a bundle starts being used (in-frame, for a LAN or server guest, and on the window client so that letting go sends the release), and the tick drops the contents with the vanilla timing. The window client only counts the ticks; the server drops the items and sends the new bundle contents.

Vanilla reference

  • BundleItem.use (startUsingItem, SUCCESS)
  • BundleItem.onUseTick (first tick, then ticksRemaining < useDuration - 10 && ticksRemaining % 2 == 0)
  • BundleItem.getUseDuration (200), dropContent, removeOneItemFromBundle, playRemoveOneSound, playDropContentsSound
  • LivingEntity.updateUsingItem / Player.drop

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/2408 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/bundle-dump-on-use` --- ### 📝 Commits (4) - [`de808e3`](https://github.com/horizon-rust/horizon/commit/de808e36129670562bdc55ecc0fe56108b4dedce) Empty a bundle by holding right click - [`4414c3c`](https://github.com/horizon-rust/horizon/commit/4414c3c1af152167ebb9b0b8c07cf949a8d98ca0) Merge main into fix/bundle-dump-on-use - [`f731ca1`](https://github.com/horizon-rust/horizon/commit/f731ca1737c67b3b50532dfd4002d963ea388bd2) Merge main into fix/bundle-dump-on-use - [`38b508e`](https://github.com/horizon-rust/horizon/commit/38b508e5a71cdb9e5f7466fef53550d2fadf5dfd) Merge main into fix/bundle-dump-on-use ### 📊 Changes **3 files changed** (+73 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+59 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+11 -0) 📝 `crates/horizon-items/src/bundle.rs` (+3 -1) </details> ### 📄 Description ## What and why Holding right click with a bundle in hand did nothing. In vanilla the bundle starts being used, drops one stack out right away, and then keeps dropping a stack every second tick (after the first 10 ticks) for up to 200 ticks, with a swing and the drop sounds. Horizon never started a use for bundles, and the use tick had no case for them. Now a bundle starts being used (in-frame, for a LAN or server guest, and on the window client so that letting go sends the release), and the tick drops the contents with the vanilla timing. The window client only counts the ticks; the server drops the items and sends the new bundle contents. ## Vanilla reference - `BundleItem.use` (`startUsingItem`, SUCCESS) - `BundleItem.onUseTick` (first tick, then `ticksRemaining < useDuration - 10 && ticksRemaining % 2 == 0`) - `BundleItem.getUseDuration` (200), `dropContent`, `removeOneItemFromBundle`, `playRemoveOneSound`, `playDropContentsSound` - `LivingEntity.updateUsingItem` / `Player.drop` ## 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:16:04 +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#4285
No description provided.