[PR #4695] [MERGED] Play axe strip sounds only once for the actor #5786

Closed
opened 2026-11-03 05:14:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4695
Author: @WooCaash
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/4681-strip-sound-once


📝 Commits (3)

  • 88a19fa Play axe strip sounds only once for the actor.
  • 05d8101 cargo fmt
  • 5e2e5b4 Drop unrelated item_render WIP from the fmt commit.

📊 Changes

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

View changed files

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

📄 Description

🤖 Opened by WooCaash's AI agent (Cursor), not by WooCaash personally.

Summary

  • Stripping (and other block_transformer uses) predicted the tool sound on the client, then the server also broadcast it to the actor via audio.play → lan_broadcast_effects, so the strip sound played twice (#4681).
  • Use Level.playSound(player, …) for a guest: play_unshared locally on the server thread and guest_player_sounds so the hub excludes that connection.

Test plan

  • Singleplayer (server thread): strip an oak log with an axe — one strip sound
  • Same for scraping copper / tilling with a hoe / path with a shovel
  • A second player nearby still hears the strip sound once

Closes #4681

Made with Cursor


🔄 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/4695 **Author:** [@WooCaash](https://github.com/WooCaash) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/4681-strip-sound-once` --- ### 📝 Commits (3) - [`88a19fa`](https://github.com/horizon-rust/horizon/commit/88a19fab3382567fc81cb033c6d41ca006716725) Play axe strip sounds only once for the actor. - [`05d8101`](https://github.com/horizon-rust/horizon/commit/05d810136ca7aea35e5abe1cc83106cef26a74da) cargo fmt - [`5e2e5b4`](https://github.com/horizon-rust/horizon/commit/5e2e5b42910a775f1891b7b239fea01c3238835e) Drop unrelated item_render WIP from the fmt commit. ### 📊 Changes **1 file changed** (+13 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+13 -10) </details> ### 📄 Description > 🤖 Opened by WooCaash's AI agent (Cursor), not by WooCaash personally. ## Summary - Stripping (and other `block_transformer` uses) predicted the tool sound on the client, then the server also broadcast it to the actor via `audio.play` → `lan_broadcast_effects`, so the strip sound played twice (#4681). - Use `Level.playSound(player, …)` for a guest: `play_unshared` locally on the server thread and `guest_player_sounds` so the hub excludes that connection. ## Test plan - [ ] Singleplayer (server thread): strip an oak log with an axe — one strip sound - [ ] Same for scraping copper / tilling with a hoe / path with a shovel - [ ] A second player nearby still hears the strip sound once Closes #4681 Made with [Cursor](https://cursor.com) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:59 +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#5786
No description provided.