Bug Fixes
Fixed GUI Items Appearing in Player Inventories & Graves After Death
Affected: Servers using use_bottom_inventory: true with grave plugins such as AxGraves.
A regression introduced in v2.5 could cause GUI filler items to appear in player inventories after closing a GUI or dying. In some cases, grave plugins would also save GUI items instead of the player's real items.
Fixed Snapshot Corruption
- Removed the syncSnapshot() system entirely.
- Snapshots are now captured only once when the GUI opens.
- Added targeted slot updates through updateSnapshotSlot() to keep snapshots accurate without overwriting them with GUI items.
- Prevents GUI filler items from being saved into inventory snapshots.
Fixed Missing Items in Graves
- SmartMenus now patches the death drop list before grave plugins process it.
- GUI-marked items are automatically removed from event.getDrops().
- Real items stored in the snapshot are re-inserted into the drop list.
- Ensures grave plugins receive the player's actual inventory contents.
Improved Inventory Restoration Safety
- Added PDC validation during inventory restoration.
- Any GUI-marked item accidentally present in a snapshot will be ignored and restored as empty.
- Prevents future edge cases from reintroducing GUI items into player inventories.
Improved Death Handling
- All physical slots used by bottom_items are now cleared before inventory restoration occurs.
- Guarantees GUI items are fully removed before real items are restored.
- Improves compatibility with AxGraves and similar inventory management plugins.
⚙️ Internal Improvements
- Replaced full inventory snapshot re-syncing with efficient per-slot updates.
- Reduced unnecessary inventory cloning operations.
- Improved reliability of Bottom Inventory GUIs during inventory modifications and player death events.
Build Changes
- Version bumped from 2.5-SNAPSHOT → 2.6-SNAPSHOT