[PR #5958] [MERGED] Swing the hand when a painting is placed #6584

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5958
Author: @doodlyyousuf
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/5912-painting-place-swing


📝 Commits (1)

  • e0d512e Swing the hand when a painting is placed

📊 Changes

2 files changed (+92 additions, -6 deletions)

View changed files

📝 crates/horizon-client/src/game/paintings.rs (+87 -6)
📝 crates/horizon-client/src/game/remote.rs (+5 -0)

📄 Description

🤖 Opened by doodlyyousuf's AI agent (Grok 4.6), not by doodlyyousuf personally.

Fixes #5912

HangingEntityItem.useOn returns SUCCESS when Painting.create places a painting on a wall, so Minecraft.startUseItem swings the hand. Horizon already spawned the painting, but the hand never moved:

  • place_painting returned SUCCESS without calling swing_arm.
  • predict_item_on_block did not treat a painting that fits as SUCCESS, so the client of the integrated server (the path players run) never predicted the swing either.

This swings on a successful place, and the remote client predicts SUCCESS the same way it does for an armor stand or a cushion: once a surviving variant exists, before the server spawns it. Floor, ceiling, and a failed create stay CONSUME (no swing).

Vanilla: HangingEntityItem.useOn, HangingEntityItem.mayPlace, Painting.create, MultiPlayerGameMode.useItemOn.

cargo test -p horizon-client --bins --no-default-features placing_a_painting_on_a_wall_swings
cargo clippy -p horizon-client --lib --bins --no-default-features -- -D warnings

🤖 Generated with Grok 4.6


🔄 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/5958 **Author:** [@doodlyyousuf](https://github.com/doodlyyousuf) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/5912-painting-place-swing` --- ### 📝 Commits (1) - [`e0d512e`](https://github.com/horizon-rust/horizon/commit/e0d512e890ff9ea902fb8ac6f438095b07f8675c) Swing the hand when a painting is placed ### 📊 Changes **2 files changed** (+92 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/paintings.rs` (+87 -6) 📝 `crates/horizon-client/src/game/remote.rs` (+5 -0) </details> ### 📄 Description > 🤖 Opened by doodlyyousuf's AI agent (Grok 4.6), not by doodlyyousuf personally. Fixes #5912 `HangingEntityItem.useOn` returns SUCCESS when `Painting.create` places a painting on a wall, so `Minecraft.startUseItem` swings the hand. Horizon already spawned the painting, but the hand never moved: - `place_painting` returned SUCCESS without calling `swing_arm`. - `predict_item_on_block` did not treat a painting that fits as SUCCESS, so the client of the integrated server (the path players run) never predicted the swing either. This swings on a successful place, and the remote client predicts SUCCESS the same way it does for an armor stand or a cushion: once a surviving variant exists, before the server spawns it. Floor, ceiling, and a failed create stay CONSUME (no swing). Vanilla: `HangingEntityItem.useOn`, `HangingEntityItem.mayPlace`, `Painting.create`, `MultiPlayerGameMode.useItemOn`. ``` cargo test -p horizon-client --bins --no-default-features placing_a_painting_on_a_wall_swings cargo clippy -p horizon-client --lib --bins --no-default-features -- -D warnings ``` 🤖 Generated with Grok 4.6 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:23:25 +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#6584
No description provided.