[PR #4194] [MERGED] Creative inventory: send the edit with the click, so holding Q over a stack can't duplicate it #5470

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4194
Author: @kacpherek
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/discord-dupes


📝 Commits (1)

  • f83be65 Send creative inventory edits with the click, not at tick end

📊 Changes

2 files changed (+42 additions, -2 deletions)

View changed files

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

📄 Description

What and why

  • Send creative inventory edits with the click, not at tick end: A creative click on a server changed the local slot but sent it at the end of the tick, while a thrown stack went out at once. A slot update the server sent in between (the pickup of an item a held Q had thrown) replaced the unsent change and was marked as synced, so the throw was never taken off the stack and the count climbed. CreativeModeInventoryScreen.slotClicked ends in broadcastChanges (CreativeInventoryListener.slotChanged -> handleCreativeModeItemAdd), so the changed slots follow the click immediately; Horizon now sends them right behind it. Fixes #3090

Self-check

rustfmt on changed files; built by CI; 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/4194 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/discord-dupes` --- ### 📝 Commits (1) - [`f83be65`](https://github.com/horizon-rust/horizon/commit/f83be65d79d3e1717ba3b99c05ecf77c621545ee) Send creative inventory edits with the click, not at tick end ### 📊 Changes **2 files changed** (+42 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+14 -2) 📝 `crates/horizon-client/src/game/remote.rs` (+28 -0) </details> ### 📄 Description ## What and why - Send creative inventory edits with the click, not at tick end: A creative click on a server changed the local slot but sent it at the end of the tick, while a thrown stack went out at once. A slot update the server sent in between (the pickup of an item a held Q had thrown) replaced the unsent change and was marked as synced, so the throw was never taken off the stack and the count climbed. CreativeModeInventoryScreen.slotClicked ends in broadcastChanges (CreativeInventoryListener.slotChanged -> handleCreativeModeItemAdd), so the changed slots follow the click immediately; Horizon now sends them right behind it. Fixes #3090 ## Self-check rustfmt on changed files; built by CI; 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:12:49 +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#5470
No description provided.