[PR #1125] [MERGED] Station shift-clicks follow vanilla's quickMoveStack; the brewing stand runs on the menu engine #3071

Closed
opened 2026-11-02 16:01:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1125
Author: @ludovic111
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @ludovic111

Base: main ← Head: fix/station-quick-move


📝 Commits (1)

  • cfd4ac3 Station shift-clicks follow vanilla's quickMoveStack; the brewing stand runs on the menu engine

📊 Changes

2 files changed (+87 additions, -95 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+1 -3)
📝 crates/horizon-client/src/game/stations.rs (+86 -92)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

  • Shift-clicks on the enchanting table, beacon, grindstone, stonecutter, cartography table, anvil and smithing table follow each vanilla menu's quickMoveStack (EnchantmentMenu, BeaconMenu, GrindstoneMenu, StonecutterMenu, CartographyTableMenu, ItemCombinerMenu with SmithingMenu.canMoveIntoInputSlots), repeated as AbstractContainerMenu.doClick's QUICK_MOVE repeats it.
  • A local brewing stand's clicks run on the verified menu engine (horizon_client::menu, BrewingStandMenu), as a server's already did, so its shift-clicks, drags (quick craft) and double clicks are vanilla's and covered by test_menu_click_parity.

Why (#275, Online5277)

The leftovers listed in #275: "the station screens' hand-written quick-move rules (the beacon differs from BeaconMenu.quickMoveStack), drag distribution on brewing/station screens". The hand-written rules put one item of a payment stack into the beacon (vanilla moves only a single item there), fell back to the other inventory half when a rule's own slots were full (vanilla moves nothing), sent grindstone/stonecutter/cartography/anvil/smithing inputs back hotbar-last-first (vanilla: main inventory first), and ignored canMoveIntoInputSlots. On the local brewing stand a drag was a plain click.

How tested

A scripted check on the live game (horizon-ctl use + click-slot N shift + menu), expectations read from the vanilla methods above. origin/main vs this branch:

Case origin/main this PR
beacon: shift a stack of 64 iron (and then a single one) FAIL: 1 into the payment slot, 63 left PASS: 64 to the main inventory, the single one pays
grindstone: shift dirt with empty inputs FAIL: dirt moved to the main inventory PASS: stays
grindstone: shift a sword out of the input FAIL: hotbar slot 8 PASS: main inventory slot 9
anvil: shift dirt with both inputs full FAIL: moved to the main inventory PASS: stays
enchanting: shift stone with the item slot full FAIL: moved to the main inventory PASS: stays
stonecutter: shift dirt (no recipe), then stone FAIL: dirt went into the input PASS: dirt to the main inventory, stone to the input
smithing: shift netherite ingots with the addition slot taken FAIL: merged 4 and kept the rest PASS: the stack moves to the main inventory
brewing stand: drag 64 stone over 3 empty slots plain click: 64 in one slot 21/21/21, 1 carried

The brewing stand's rules are the engine's Kind::Brewing, which test_menu_click_parity compares with vanilla's menu (it ran in the parity gate below).

Fixes #275 (with the book title PR, #1123; the station drags that remain are in FEATURES.md LATER 4k)

Self-check (Mac mini, one integration commit of the five Q1 PRs on origin/main 2d586fac)

  • cargo fmt --all --check: clean
  • set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings: clean (no warnings, no errors)
  • cargo test -p horizon-client: lib 962 passed (14 ignored), main 84 passed, horizon-ctl 15 passed, integration tests 7 passed
  • tools/parity.py --changed origin/main: all 101 affected harnesses pass (secure_chat failed once in the batch run, which reused cached oracle results, then passed when rerun alone)

Needs Ludovic

Nothing.

🤖 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/1125 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/station-quick-move` --- ### 📝 Commits (1) - [`cfd4ac3`](https://github.com/horizon-rust/horizon/commit/cfd4ac33bfa3fd8ad38ce56dedd962d6383f4227) Station shift-clicks follow vanilla's quickMoveStack; the brewing stand runs on the menu engine ### 📊 Changes **2 files changed** (+87 additions, -95 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+1 -3) 📝 `crates/horizon-client/src/game/stations.rs` (+86 -92) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What - Shift-clicks on the enchanting table, beacon, grindstone, stonecutter, cartography table, anvil and smithing table follow each vanilla menu's `quickMoveStack` (`EnchantmentMenu`, `BeaconMenu`, `GrindstoneMenu`, `StonecutterMenu`, `CartographyTableMenu`, `ItemCombinerMenu` with `SmithingMenu.canMoveIntoInputSlots`), repeated as `AbstractContainerMenu.doClick`'s QUICK_MOVE repeats it. - A local brewing stand's clicks run on the verified menu engine (`horizon_client::menu`, `BrewingStandMenu`), as a server's already did, so its shift-clicks, drags (quick craft) and double clicks are vanilla's and covered by `test_menu_click_parity`. ## Why (#275, Online5277) The leftovers listed in #275: "the station screens' hand-written quick-move rules (the beacon differs from `BeaconMenu.quickMoveStack`), drag distribution on brewing/station screens". The hand-written rules put one item of a payment stack into the beacon (vanilla moves only a single item there), fell back to the other inventory half when a rule's own slots were full (vanilla moves nothing), sent grindstone/stonecutter/cartography/anvil/smithing inputs back hotbar-last-first (vanilla: main inventory first), and ignored `canMoveIntoInputSlots`. On the local brewing stand a drag was a plain click. ## How tested A scripted check on the live game (horizon-ctl `use` + `click-slot N shift` + `menu`), expectations read from the vanilla methods above. origin/main vs this branch: | Case | origin/main | this PR | |---|---|---| | beacon: shift a stack of 64 iron (and then a single one) | FAIL: 1 into the payment slot, 63 left | PASS: 64 to the main inventory, the single one pays | | grindstone: shift dirt with empty inputs | FAIL: dirt moved to the main inventory | PASS: stays | | grindstone: shift a sword out of the input | FAIL: hotbar slot 8 | PASS: main inventory slot 9 | | anvil: shift dirt with both inputs full | FAIL: moved to the main inventory | PASS: stays | | enchanting: shift stone with the item slot full | FAIL: moved to the main inventory | PASS: stays | | stonecutter: shift dirt (no recipe), then stone | FAIL: dirt went into the input | PASS: dirt to the main inventory, stone to the input | | smithing: shift netherite ingots with the addition slot taken | FAIL: merged 4 and kept the rest | PASS: the stack moves to the main inventory | | brewing stand: drag 64 stone over 3 empty slots | plain click: 64 in one slot | 21/21/21, 1 carried | The brewing stand's rules are the engine's `Kind::Brewing`, which `test_menu_click_parity` compares with vanilla's menu (it ran in the parity gate below). Fixes #275 (with the book title PR, #1123; the station drags that remain are in FEATURES.md LATER 4k) ## Self-check (Mac mini, one integration commit of the five Q1 PRs on origin/main 2d586fac) - `cargo fmt --all --check`: clean - `set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings`: clean (no warnings, no errors) - `cargo test -p horizon-client`: lib 962 passed (14 ignored), main 84 passed, horizon-ctl 15 passed, integration tests 7 passed - `tools/parity.py --changed origin/main`: all 101 affected harnesses pass (secure_chat failed once in the batch run, which reused cached oracle results, then passed when rerun alone) ## Needs Ludovic Nothing. 🤖 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-02 16:01:17 +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#3071
No description provided.