Skip to content

Conversation

@kuroneko007
Copy link

Summary

This PR updates the mod to run on Minecraft/Fabric 1.21.10 (Yarn 1.21.10+build.2).
Mojang/Fabric changed the client input API in this version (key/mouse events now use
KeyInput, Click, and AbstractInput), so the GUI mixins and the custom SortButton
needed to be adjusted.

What changed

  • updated SortButton to extend PressableWidget and to override
    onPress(AbstractInput) instead of the removed onClick(...)
  • updated inventory/container/shulker screen mixins to use the new
    method signatures:
    • keyPressed(KeyInput keyInput)
    • mouseClicked(Click click, boolean doubleClick)
  • replaced old key/mouse checks (matchesKey(int, int), matchesMouse(int))
    with the new ones that take the input objects
  • kept button placement logic the same (still respects Config.* offsets)

- Replace deprecated key/mouse handlers with KeyInput/Click
- Update SortButton to extend PressableWidget and use onPress(AbstractInput)
- Adjust mixins for Inventory/Container/Shulker screens to new signatures
- Keep button positioning logic the same
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.

1 participant