Skip to content

26.1 Slot Modification and GUI fixes#10

Merged
Patbox merged 19 commits intoPatbox:mainfrom
Aquaeyes:26.1-drop-modifier-fix
Apr 12, 2026
Merged

26.1 Slot Modification and GUI fixes#10
Patbox merged 19 commits intoPatbox:mainfrom
Aquaeyes:26.1-drop-modifier-fix

Conversation

@Aquaeyes
Copy link
Copy Markdown

@Aquaeyes Aquaeyes commented Apr 12, 2026

This PR contains many of the same changes as emilyploszaj#411, with most only undergoing changes to adapt the existing fixes to the new codebase.

Additionally, extra trinket slots no longer render when the Recipe Book is open, and the hover-slots no longer show up when mousing over where they would be under a narrow-view Recipe Book screen rendering over the top of the inventory window. When an item from a removed slot is handled, the previously held item is removed from tracking - this prevents it from being handled again if the slot is re-added.

The least polished part is likely the fix for crashing upon datapack reload with a number of Trinket Slots that doesn't match the default - for example, by having a trinket that modifies slot count equipped - which makes TrinketInventoryImpl.copyFrom() copy forced slot counts, and sends a SyncInventoryPayload before the SyncSlotsPlayload upon datapack refresh. Finally, old inventory invalidation has been moved to be set after the SlotReferences are created for the relevant dropped slots.

NOTE: not quite tested yet for NeoForge with the latest updates re: cached slotaccesses, working on it.

Aquaeyes added 19 commits April 9, 2026 09:52
…ts because of its presence, remove attributes for trinkets dropped from inventory resizing
…he same UUID if another trinket also has that attribute.
Prevents dropping trinkets when left clicking if their hover-slots extend past the inventory bounds.
… prevent the Recipe Book from intercepting trinket slot clicks.
Also, prevent rendering of trinket slots above recipe book if in narrow mode.
Resolves issues with double-click collection of stackable trinkets leaving attributes if a prior update would have removed its slot.
…han default.

For example, from trinkets that grant additional slots.
…rop-modifier-fix

# Conflicts:
#	src/main/java/eu/pb4/trinkets/impl/LivingEntityTrinketAttachment.java
@Patbox Patbox merged commit 1edf8f7 into Patbox:main Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants