[GH-ISSUE #1500] [singleplayer] Vehicle storage loses deposits and duplicates withdrawals #467

Closed
opened 2026-11-02 15:39:18 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1500

🤖 Filed by an AI assistant (Codex).

Tested 9dd9a836991e263b51d0cec0f690d40a0b09eecc, explicit --no-server-thread / --server-thread, equivalent disposable worlds. Both modes are affected.

  1. On a rail, summon a chest minecart containing one diamond:
    /summon chest_minecart ~ ~ ~ {Items:[{Slot:0b,id:"minecraft:diamond",count:1}]}
  2. Open it and shift-click the diamond into your inventory.
  3. Close with Escape, then reopen the cart.

Expected: one diamond on the player and an empty cart.

Actual: the player keeps the diamond and the cart contains another. Conversely, depositing a diamond into an empty cart makes it disappear after closing/reopening. This also reproduces with chest boats and hopper minecarts. No saving or chunk unloading is involved; this is separate from #1497.

Evidence: .local/singleplayer-audit/extensions-vehicles-{a,b,c} records menu slots, player counts and authoritative vehicle Items. Reduced b/c use one diamond and Escape. Native 26.3 controls perform actual menu quick-moves, close and reopen, retaining exactly one diamond overall (extensions-native-vehicle-c and extensions-native-vehicle-withdraw-a).

Hypothesis: menu changes remain in a temporary container rather than updating the vehicle's inventory.

Acceptance: deposits and withdrawals update the backing vehicle immediately and conserve items through menu closure/reopening for all three vehicle types.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1500 > 🤖 Filed by an AI assistant (Codex). Tested `9dd9a836991e263b51d0cec0f690d40a0b09eecc`, explicit `--no-server-thread` / `--server-thread`, equivalent disposable worlds. **Both modes are affected.** 1. On a rail, summon a chest minecart containing one diamond: `/summon chest_minecart ~ ~ ~ {Items:[{Slot:0b,id:"minecraft:diamond",count:1}]}` 2. Open it and shift-click the diamond into your inventory. 3. Close with Escape, then reopen the cart. Expected: one diamond on the player and an empty cart. Actual: the player keeps the diamond and the cart contains another. Conversely, depositing a diamond into an empty cart makes it disappear after closing/reopening. This also reproduces with chest boats and hopper minecarts. No saving or chunk unloading is involved; this is separate from #1497. Evidence: `.local/singleplayer-audit/extensions-vehicles-{a,b,c}` records menu slots, player counts and authoritative vehicle `Items`. Reduced b/c use one diamond and Escape. Native 26.3 controls perform actual menu quick-moves, close and reopen, retaining exactly one diamond overall (`extensions-native-vehicle-c` and `extensions-native-vehicle-withdraw-a`). Hypothesis: menu changes remain in a temporary container rather than updating the vehicle's inventory. Acceptance: deposits and withdrawals update the backing vehicle immediately and conserve items through menu closure/reopening for all three vehicle types.
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#467
No description provided.