[PR #3120] [CLOSED] Creative inventory: right-clicking a stack picks up half again, instead of growing the stack #4813

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3120
Author: @kacpherek
Created: 10/28/2026
Status: ❌ Closed

Base: main ← Head: fix/stack-halving


📝 Commits (1)

  • 9e59fa7 Keep creative inventory clicks off the server's menu

📊 Changes

2 files changed (+9 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+2 -1)
📝 crates/horizon-client/src/game/remote.rs (+7 -0)

📄 Description

What and why

  • Players saw: in the creative inventory's survival tab, halving 64 dirt gave 32, 33, 32, 31, 30... instead of 32, 16, 8, 4, 2, 1, 1.
  • Cause: on the server thread (and on real servers) an empty-hand click in the creative screen was sent to the server as a ContainerClick, while placing the carried stack was not (it only went out as SetCreativeModeSlot edits). The server's own cursor kept the first half, so the next right-click on the 32 stack was a "place one" on the server and corrected the client to 33.
  • Change: the creative screen's clicks (single click and the Shift double click) stay on the client's menu, as in vanilla; changed slots are sent as SetCreativeModeSlot only.
  • Issue: no open issue matches this report.

Vanilla reference

  • CreativeModeInventoryScreen.slotClicked: in the inventory tab it runs inventoryMenu.clicked locally and never calls handleContainerInput; no ContainerClick is sent.
  • AbstractContainerMenu.doClick: PICKUP with button 1 on a slot with an empty cursor takes (count + 1) / 2.

Self-check

fmt passes. Built and tested by this pull request's checks. Not run in game.


🔄 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/3120 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/28/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/stack-halving` --- ### 📝 Commits (1) - [`9e59fa7`](https://github.com/horizon-rust/horizon/commit/9e59fa75200815ac33597cacb9be182adfab4aae) Keep creative inventory clicks off the server's menu ### 📊 Changes **2 files changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+2 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+7 -0) </details> ### 📄 Description ## What and why - Players saw: in the creative inventory's survival tab, halving 64 dirt gave 32, 33, 32, 31, 30... instead of 32, 16, 8, 4, 2, 1, 1. - Cause: on the server thread (and on real servers) an empty-hand click in the creative screen was sent to the server as a `ContainerClick`, while placing the carried stack was not (it only went out as `SetCreativeModeSlot` edits). The server's own cursor kept the first half, so the next right-click on the 32 stack was a "place one" on the server and corrected the client to 33. - Change: the creative screen's clicks (single click and the Shift double click) stay on the client's menu, as in vanilla; changed slots are sent as `SetCreativeModeSlot` only. - Issue: no open issue matches this report. ## Vanilla reference - `CreativeModeInventoryScreen.slotClicked`: in the inventory tab it runs `inventoryMenu.clicked` locally and never calls `handleContainerInput`; no `ContainerClick` is sent. - `AbstractContainerMenu.doClick`: PICKUP with button 1 on a slot with an empty cursor takes `(count + 1) / 2`. ## Self-check fmt passes. Built and tested by this pull request's checks. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:08 +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#4813
No description provided.