[PR #5118] [CLOSED] Shift click: move a stack a full furnace refuses #6086

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5118
Author: @1038april
Created: 10/31/2026
Status: ❌ Closed

Base: main ← Head: fix/furnace-shift-click-fallback


📝 Commits (1)

  • 157dca5 Move a stack a full furnace refuses on a Shift click

📊 Changes

3 files changed (+182 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game/remote.rs (+5 -0)
📝 crates/horizon-client/src/game/tweaks.rs (+31 -3)
📝 crates/horizon-client/src/menu.rs (+146 -0)

📄 Description

🤖 Opened by 1038april's AI agent (Claude Code, Opus 5.5), not by 1038april personally.

What and why

Shift-clicking a smeltable or a fuel into a furnace, blast furnace or smoker does nothing when the slot it belongs in has no room, so the click feels broken. With this change the stack moves instead:

  1. A smeltable fuel (a log in a furnace) tries the fuel slot when the input has no room.
  2. Anything else goes between the hotbar and the main inventory, as items the furnace doesn't accept already do: partial stacks first, then the first empty slot.
  3. What doesn't fit stays where it was.

If the slot has room for any of the stack, vanilla's move runs as before. A log in an empty furnace still goes to the input. A stack in hand, or any other menu, changes nothing.

This differs from vanilla on purpose, and it is always on with no setting. That's the behaviour 1038april asked for, and it doesn't meet CONTRIBUTING.md's rule that Horizon-only changes to vanilla behaviour are off by default. A maintainer may want a setting under Extras before merging; that would be a small change around the hook in remote_menu_ops.

There is no linked issue: this isn't a bug against vanilla, so I didn't open one, and it hasn't been through the suggestion queue either.

How it works: the server's own quick move wouldn't move the stack, so the client predicting one would snap back. furnace_overflow (game/tweaks.rs) sends ordinary clicks instead, a pick-up and then one-slot drags, like the Mouse Tweaks wheel. It's hooked into remote_menu_ops, so it covers the server thread and servers, not the deprecated in-frame path.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

Horizon-only. Read from the 26.3 jar with javap: AbstractFurnaceMenu.quickMoveStack returns EMPTY when moveItemStackTo fails for a smeltable or a fuel (FurnaceMenu, BlastFurnaceMenu and SmokerMenu don't override it). CraftingMenu.quickMoveStack, which falls back between the hotbar and the inventory, is the model for the fallback.

Menu::quick_move isn't changed, so the engine still does what vanilla does. No harness is added or extended: there is no vanilla behaviour to compare this with.

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --base upstream/main on KernelOS-PC, against upstream/main at c3905131b, 2 min 26 s)

Scope                  4 files, +183 -3
Cargo.lock             unchanged
Public tree            pass
Python tests           495 passed (46 s)
rustfmt                pass (8 s)
clippy                 pass (43 s)
tests: horizon-client  1340 passed (45 s)
doc tests              0 passed (1 s)
content root tests     content root untouched
tokens.css up to date  theme untouched
launcher (3 checks)    launcher untouched
Parity                 not run (no vanilla data here): CI's parity job picks the affected harnesses

The Scope line counts an untracked local file, horizon_official_server.txt; the branch itself is 3 files, +182 -3.

This run had no .local, so the tests that use with_menu, including the new ones, skipped silently. I ran them separately against a launcher install's prepared data (nightly 1da354b): cargo test -p horizon-client --lib menu:: passes, 23 of 23.

Tested in a real game on the server thread, driven with horizon-ctl in a scratch world (offscreen), reading the server's data get entity @s Inventory afterwards:

  • Blast furnace: a hotbar stack moved to the first main inventory slot, and a main inventory stack to the first hotbar slot. Fuel behaved the same.
  • Furnace with a full input: logs moved to the fuel slot and burned.
  • Nothing snapped back, and nothing was left on the cursor.

Not tested: a smoker in-game (same code), a server not running Horizon, and an anticheat's view of the clicks. No screenshots, as the change is only where items land.

🤖 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/5118 **Author:** [@1038april](https://github.com/1038april) **Created:** 10/31/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/furnace-shift-click-fallback` --- ### 📝 Commits (1) - [`157dca5`](https://github.com/horizon-rust/horizon/commit/157dca5596bf3b9e1c4590cfeb5569d96a18c611) Move a stack a full furnace refuses on a Shift click ### 📊 Changes **3 files changed** (+182 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+5 -0) 📝 `crates/horizon-client/src/game/tweaks.rs` (+31 -3) 📝 `crates/horizon-client/src/menu.rs` (+146 -0) </details> ### 📄 Description > 🤖 Opened by 1038april's AI agent (Claude Code, Opus 5.5), not by 1038april personally. ## What and why Shift-clicking a smeltable or a fuel into a furnace, blast furnace or smoker does nothing when the slot it belongs in has no room, so the click feels broken. With this change the stack moves instead: 1. A smeltable fuel (a log in a furnace) tries the fuel slot when the input has no room. 2. Anything else goes between the hotbar and the main inventory, as items the furnace doesn't accept already do: partial stacks first, then the first empty slot. 3. What doesn't fit stays where it was. If the slot has room for any of the stack, vanilla's move runs as before. A log in an empty furnace still goes to the input. A stack in hand, or any other menu, changes nothing. **This differs from vanilla on purpose, and it is always on with no setting.** That's the behaviour 1038april asked for, and it doesn't meet CONTRIBUTING.md's rule that Horizon-only changes to vanilla behaviour are off by default. A maintainer may want a setting under Extras before merging; that would be a small change around the hook in `remote_menu_ops`. There is no linked issue: this isn't a bug against vanilla, so I didn't open one, and it hasn't been through the suggestion queue either. How it works: the server's own quick move wouldn't move the stack, so the client predicting one would snap back. `furnace_overflow` (`game/tweaks.rs`) sends ordinary clicks instead, a pick-up and then one-slot drags, like the Mouse Tweaks wheel. It's hooked into `remote_menu_ops`, so it covers the server thread and servers, not the deprecated in-frame path. ## Kind - [ ] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [x] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference Horizon-only. Read from the 26.3 jar with `javap`: `AbstractFurnaceMenu.quickMoveStack` returns EMPTY when `moveItemStackTo` fails for a smeltable or a fuel (`FurnaceMenu`, `BlastFurnaceMenu` and `SmokerMenu` don't override it). `CraftingMenu.quickMoveStack`, which falls back between the hotbar and the inventory, is the model for the fallback. `Menu::quick_move` isn't changed, so the engine still does what vanilla does. No harness is added or extended: there is no vanilla behaviour to compare this with. ## Other projects' code none ## Self-check ``` pr_ready (tools/pr_ready.py --base upstream/main on KernelOS-PC, against upstream/main at c3905131b, 2 min 26 s) Scope 4 files, +183 -3 Cargo.lock unchanged Public tree pass Python tests 495 passed (46 s) rustfmt pass (8 s) clippy pass (43 s) tests: horizon-client 1340 passed (45 s) doc tests 0 passed (1 s) content root tests content root untouched tokens.css up to date theme untouched launcher (3 checks) launcher untouched Parity not run (no vanilla data here): CI's parity job picks the affected harnesses ``` The Scope line counts an untracked local file, `horizon_official_server.txt`; the branch itself is 3 files, +182 -3. This run had no `.local`, so the tests that use `with_menu`, including the new ones, skipped silently. I ran them separately against a launcher install's prepared data (nightly `1da354b`): `cargo test -p horizon-client --lib menu::` passes, 23 of 23. Tested in a real game on the server thread, driven with `horizon-ctl` in a scratch world (offscreen), reading the server's `data get entity @s Inventory` afterwards: - Blast furnace: a hotbar stack moved to the first main inventory slot, and a main inventory stack to the first hotbar slot. Fuel behaved the same. - Furnace with a full input: logs moved to the fuel slot and burned. - Nothing snapped back, and nothing was left on the cursor. Not tested: a smoker in-game (same code), a server not running Horizon, and an anticheat's view of the clicks. No screenshots, as the change is only where items land. 🤖 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-03 06:11:31 +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#6086
No description provided.