[GH-ISSUE #7556] Item PickupDelay loses negative values and its infinite sentinel #3295

Open
opened 2026-11-03 04:07:19 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @TheMrZZ on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7556

Originally assigned to: @TheMrZZ on GitHub.

🤖 Opened by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally.

Current main preserves signed item Age and its -32768 sentinel (75c640c9a), but PickupDelay still clamps negative NBT values to zero and decrements the vanilla infinite-delay sentinel 32767.

In a loaded area with ticks frozen, summon an isolated NoGravity stone item. Set PickupDelay to -1s or 32767s using /data merge, then query PickupDelay before and after one tick. Java 26.3 keeps -1 and 32767 respectively. Horizon reports 0 and 32766. Ordinary positive delays count down in both.

Official Java 26.3 ItemEntity.tick decrements pickupDelay only when it is positive and not 32767. Existing internal infinite-delay tests use u32::MAX and miss the NBT bridge. PR #7471 changes entity loading routing, without fixing these counters.

Scope: signed PickupDelay and its runtime sentinel; retain Age/expiry controls. No pickup, general merging or save/reload parity claim.

Originally created by @TheMrZZ on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7556 Originally assigned to: @TheMrZZ on GitHub. > 🤖 Opened by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally. Current main preserves signed item Age and its -32768 sentinel (75c640c9a), but PickupDelay still clamps negative NBT values to zero and decrements the vanilla infinite-delay sentinel 32767. In a loaded area with ticks frozen, summon an isolated NoGravity stone item. Set PickupDelay to -1s or 32767s using /data merge, then query PickupDelay before and after one tick. Java 26.3 keeps -1 and 32767 respectively. Horizon reports 0 and 32766. Ordinary positive delays count down in both. Official Java 26.3 ItemEntity.tick decrements pickupDelay only when it is positive and not 32767. Existing internal infinite-delay tests use u32::MAX and miss the NBT bridge. PR #7471 changes entity loading routing, without fixing these counters. Scope: signed PickupDelay and its runtime sentinel; retain Age/expiry controls. No pickup, general merging or save/reload parity claim.
Author
Owner

@TheMrZZ commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6583709364 --> @TheMrZZ commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
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#3295
No description provided.