feat(fabric): add Minecraft 26.2 support#100
Conversation
Update dependencies to 26.2 (fabric-api 0.153.0+26.2, loader 0.19.3) and fix two API renames: Minecraft.screen -> gui.screen(), Minecraft.getToastManager() -> gui.toastManager().
There was a problem hiding this comment.
Code Review
This pull request updates the Minecraft, Fabric loader, and Fabric API dependency versions in gradle.properties, and adapts the codebase to the new Minecraft GUI API. A review comment highlights a potential NullPointerException in TunnelManager.displayErrorToast() if it is called during early startup before the Minecraft GUI is fully initialized, and suggests adding defensive null checks.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
I have created a dedicated branch for 26.2: https://github.com/HttpRafa/modflared/tree/fabric/26.2. Can you rebase your work onto it? |
|
Done! Rebased onto |
Summary
Context
In Minecraft 26.2, the current Screen and ToastManager were moved from direct fields/methods on the `Minecraft` class into the new `Gui` class (`Minecraft.gui`). Without these fixes, the mod crashes on startup with a mixin injection failure.
Test plan