[GH-ISSUE #3121] Bug related to item division #825

Open
opened 2026-11-02 15:42:10 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3121

Version: latest · OS: Windows 11, i31200f, 1650 gtx (copied from the report)

What I did: I started dividing stacks of items in half.

What happened:In Horizon, I couldn’t reduce the stack to 1; instead, I ended up with some strange quantities of blocks, as you can see in the screenshot.

What I expected: It should have reduced the stack from 64 to 1, as in Java.

Horizon version: latest

OS, CPU, GPU: Windows 11, i31200f, 1650 gtx.я

Reported on Discord by Kreklin in #horizon-bugs · Discord thread
Tags: gameplay

Attachments (Discord links expire after a while; the thread keeps them)

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3121 **Version:** latest · **OS:** Windows 11, i31200f, 1650 gtx <sub>(copied from the report)</sub> > What I did: I started dividing stacks of items in half. > > What happened:In Horizon, I couldn’t reduce the stack to 1; instead, I ended up with some strange quantities of blocks, as you can see in the screenshot. > > What I expected: It should have reduced the stack from 64 to 1, as in Java. > > Horizon version: latest > > OS, CPU, GPU: Windows 11, i31200f, 1650 gtx.я Reported on Discord by **Kreklin** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1564935195692498944) Tags: gameplay **Attachments** (Discord links expire after a while; the thread keeps them) - [image.png](https://cdn.discordapp.com/attachments/1564935195692498944/1564935195931447366/image.png?ex=6ae312f9&is=6ae1c179&hm=7cc08ded1913c1e8c65d094b5226b4faadaffff5d9041e6aedf9413a9bdd936c&) <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
Author
Owner

@kira-horizon[bot] commented on GitHub (Nov 1, 2026):

Claimed by JustKrabby on Discord (GitHub: JustKarkat), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #3121).

<!-- gh-comment-id:6552815978 --> @kira-horizon[bot] commented on GitHub (Nov 1, 2026): Claimed by `JustKrabby` on Discord (GitHub: `JustKarkat`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #3121). <!-- kira:work -->
Author
Owner

@JustKarkat commented on GitHub (Nov 1, 2026):

🤖 Agent (Krabby's, ZCode): investigated on current main (fbd0ca7f1), and I could not reproduce the split behaving differently from vanilla 26.3. The attached screenshot is gone — the Discord CDN answers "This content is no longer available" — so I worked from the text and tested the usual ways of dividing a stack.

Setup: single-player (integrated server), survival inventory, creative for one case, driven with horizon-ctl click-slot / drag-at; every count below was read back from the menu, not from the rendered screen.

Action Vanilla 26.3 Horizon
Right-click a 64 stack, empty hand 32 in the slot, 32 in hand 32 / 32
Right-click empty slots with 32 in hand 1 each 1 each
Halving: 28 → … 14/14 → 7/7 → 4/3 same
Right-drag over 3 empty slots with 18 in hand 1 each, 15 left 1 each, 15 left
Right-drag over slots holding 1 stone, 23 in hand 2 each, 20 left 2 each, 20 left
Left-drag over 3 empty slots with 15 in hand 5 each, 0 left 5 each, 0 left
10 rapid right-clicks on one empty slot, 32 in hand 10 in the slot, 22 left same
Creative tab item, left-click (display stack shows 1) carries the display count (1) 1 (CreativeModeInventoryScreen.slotClicked)

The ordinary flows are also pinned against a vanilla oracle by tools/test_menu_click_parity.py (AbstractContainerMenu.clicked, every ContainerInput, randomized slot contents) and tools/test_container_screen_parity.py (the screen's mouse press/drag/release state machine), so a divergence this size in the normal clicks would show there.

To go further I need the missing pieces:

  • The screenshot — re-upload it here if you can; it is the only record of the "strange quantities" and their pattern is what tells me which rule went wrong.
  • Where: survival inventory, creative item tab (or its Survival Inventory tab), a chest/container, or a crafting table?
  • What you did with the mouse: plain right-clicks, a left-drag or a right-drag — and did the button come up inside the game window?
  • Extras: were Mouse Tweaks or the sort buttons on (Off by default), and was this single-player or on a server?

The report says 0.2.93, which is a few hundred builds behind main; if you can still make it happen on the current nightly, the same notes plus a fresh screenshot would let me reproduce it.

<!-- gh-comment-id:6553077369 --> @JustKarkat commented on GitHub (Nov 1, 2026): 🤖 Agent (Krabby's, ZCode): investigated on current main (`fbd0ca7f1`), and I could not reproduce the split behaving differently from vanilla 26.3. The attached screenshot is gone — the Discord CDN answers "This content is no longer available" — so I worked from the text and tested the usual ways of dividing a stack. **Setup:** single-player (integrated server), survival inventory, creative for one case, driven with `horizon-ctl` `click-slot` / `drag-at`; every count below was read back from the menu, not from the rendered screen. | Action | Vanilla 26.3 | Horizon | |---|---|---| | Right-click a 64 stack, empty hand | 32 in the slot, 32 in hand | 32 / 32 | | Right-click empty slots with 32 in hand | 1 each | 1 each | | Halving: 28 → … | 14/14 → 7/7 → 4/3 | same | | Right-drag over 3 empty slots with 18 in hand | 1 each, 15 left | 1 each, 15 left | | Right-drag over slots holding 1 stone, 23 in hand | 2 each, 20 left | 2 each, 20 left | | Left-drag over 3 empty slots with 15 in hand | 5 each, 0 left | 5 each, 0 left | | 10 rapid right-clicks on one empty slot, 32 in hand | 10 in the slot, 22 left | same | | Creative tab item, left-click (display stack shows 1) | carries the display count (1) | 1 (`CreativeModeInventoryScreen.slotClicked`) | The ordinary flows are also pinned against a vanilla oracle by `tools/test_menu_click_parity.py` (`AbstractContainerMenu.clicked`, every `ContainerInput`, randomized slot contents) and `tools/test_container_screen_parity.py` (the screen's mouse press/drag/release state machine), so a divergence this size in the normal clicks would show there. To go further I need the missing pieces: - **The screenshot** — re-upload it here if you can; it is the only record of the "strange quantities" and their pattern is what tells me which rule went wrong. - **Where**: survival inventory, creative item tab (or its Survival Inventory tab), a chest/container, or a crafting table? - **What you did with the mouse**: plain right-clicks, a left-drag or a right-drag — and did the button come up inside the game window? - **Extras**: were Mouse Tweaks or the sort buttons on (Off by default), and was this single-player or on a server? The report says 0.2.93, which is a few hundred builds behind main; if you can still make it happen on the current nightly, the same notes plus a fresh screenshot would let me reproduce it.
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#825
No description provided.