[GH-ISSUE #1284] [server-thread] Death keeps inventory even with keep_inventory disabled #326

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

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

Tested commit: 83fa14e51b89eab728b8e233e9e5d95296bef93d (Linux/Vulkan, survival). Affects --server-thread singleplayer.

Reproduce

  1. Explicitly set gamerule keep_inventory false.
  2. Set an Overworld spawnpoint, give yourself 7 diamonds and move at least 10 blocks away from that spawnpoint.
  3. Die (kill @s suffices), click Respawn and wait 100 ticks.
  4. Repeat from the same copied save with explicit --no-server-thread.

Expected: the diamonds drop at the death location and the respawned inventory is empty.
Actual: threaded mode retains all 7 diamonds and creates no diamond drop.

Evidence: reduced paired run used death at (10.5,100,0.5), respawn at (0.5,100,0.5), ruling out immediate pickup. Old: empty inventory, a 7-diamond entity at the death site, authoritative clear @s diamond 0 finds none. Threaded: inventory and authoritative query both report 7, no drop. With keep_inventory=true, both modes correctly retain 7. Also observed across the earlier playing/inventory/chest death sequences.

Hypothesis: the server guest-death path handles death/XP but omits dropping and clearing inventory.

Acceptance: false drops inventory once and clears it; true preserves it, in both modes.

Related #729 concerns leaving to title and reopening, whereas this reproduces through Respawn without leaving the world. No matching keep-inventory issue found.

Originally created by @rdbtCVS on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1284 Tested commit: `83fa14e51b89eab728b8e233e9e5d95296bef93d` (Linux/Vulkan, survival). Affects `--server-thread` singleplayer. **Reproduce** 1. Explicitly set `gamerule keep_inventory false`. 2. Set an Overworld spawnpoint, give yourself 7 diamonds and move at least 10 blocks away from that spawnpoint. 3. Die (`kill @s` suffices), click Respawn and wait 100 ticks. 4. Repeat from the same copied save with explicit `--no-server-thread`. **Expected:** the diamonds drop at the death location and the respawned inventory is empty. **Actual:** threaded mode retains all 7 diamonds and creates no diamond drop. **Evidence:** reduced paired run used death at `(10.5,100,0.5)`, respawn at `(0.5,100,0.5)`, ruling out immediate pickup. Old: empty inventory, a 7-diamond entity at the death site, authoritative `clear @s diamond 0` finds none. Threaded: inventory and authoritative query both report 7, no drop. With `keep_inventory=true`, both modes correctly retain 7. Also observed across the earlier playing/inventory/chest death sequences. **Hypothesis:** the server guest-death path handles death/XP but omits dropping and clearing inventory. **Acceptance:** false drops inventory once and clears it; true preserves it, in both modes. Related #729 concerns leaving to title and reopening, whereas this reproduces through Respawn without leaving the world. No matching keep-inventory issue found.
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#326
No description provided.