Skip to content

feat(fabric): add Minecraft 26.2 support#100

Merged
HttpRafa merged 2 commits into
HttpRafa:fabric/26.2from
mrcndz:fabric/26.2
Jun 27, 2026
Merged

feat(fabric): add Minecraft 26.2 support#100
HttpRafa merged 2 commits into
HttpRafa:fabric/26.2from
mrcndz:fabric/26.2

Conversation

@mrcndz

@mrcndz mrcndz commented Jun 24, 2026

Copy link
Copy Markdown

Summary

  • Bumps `minecraft_version` to `26.2`, `fabric-api` to `0.153.0+26.2`, and `loader_version` to `0.19.3`
  • Fixes two Minecraft 26.2 API renames:
    • `Minecraft.screen` (field) → `Minecraft.gui.screen()` (method on `Gui`)
    • `Minecraft.getToastManager()` → `Minecraft.gui.toastManager()`

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

  • Compiles cleanly with `./gradlew build`
  • Tested in-game connecting to a server behind a Cloudflare tunnel on Minecraft 26.2 + Fabric Loader 0.19.3

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().

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/main/java/dev/httxrafa/modflared/tunnel/manager/TunnelManager.java Outdated
@HttpRafa

Copy link
Copy Markdown
Owner

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?

@mrcndz mrcndz changed the base branch from fabric/26.1 to fabric/26.2 June 24, 2026 12:44
@mrcndz

mrcndz commented Jun 24, 2026

Copy link
Copy Markdown
Author

Done! Rebased onto fabric/26.2 and updated the PR base branch accordingly.

@HttpRafa HttpRafa merged commit a2e0651 into HttpRafa:fabric/26.2 Jun 27, 2026
1 check passed
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