Skip to content

Update to MC 26.2 - #5

Merged
HelixCraft merged 7 commits into
HelixCraft:mc-26.2from
GG-MD:feat/mc-26.2-port
Aug 4, 2026
Merged

HelixCraft merged 7 commits into
HelixCraft:mc-26.2from
GG-MD:feat/mc-26.2-port

Conversation

@GG-MD

@GG-MD GG-MD commented Aug 1, 2026

Copy link
Copy Markdown

This updates the mod to run on MC 26.2 @HelixCraft.

26.2 is a big jump from the old 1.20.6 base - Mojang moved to the new versioning
scheme, the client is now unobfuscated, and Yarn mappings are gone. So this isn't
a version bump, it's a full port to official Mojang mappings.

What changed:

  • Build: unobfuscated Fabric Loom plugin (net.fabricmc.fabric-loom), no mappings
    block, Gradle 9.6.1, Java 25 toolchain. Loader 0.19.3, Fabric API 0.156.0+26.2.
    The Fabric API modules are pulled in explicitly since the JIJ nested jars don't land
    on the compile classpath otherwise.
  • Mixins: retargeted to the renamed network classes (Connection,
    ClientPacketListener, Minecraft). Outgoing packets now hook the real send funnel
    so nothing is missed. Dropped the empty template example mixins.
  • Logger + unpackers: ported every packet accessor to the new API. A few packets
    are records now, and inventory clicks only carry hashed stacks in 26.2, so that
    unpacker reports the hash instead of full item data.
  • GUI: config screen, color editor and widgets moved to the new
    extractRenderState / GuiGraphicsExtractor render pipeline and the new input
    events. Keybinding uses KeyMappingHelper.

Also fixed a logging gap: the packet whitelist is keyed by the old Yarn names, but
most of them were never mapped to the new Mojang classes, so whole categories
(sounds, titles/subtitles, scoreboard, world border, combat, etc.) never showed up
in the log even when selected. Bundle packets are now unpacked recursively too, so
the entity/spawn packets the server batches inside them are no longer swallowed.

Builds clean (./gradlew build, Java 25). Not yet tested in a live 26.2 client, so
a quick in-game sanity check before merging wouldn't hurt.

@HelixCraft
HelixCraft changed the base branch from main to mc-26.2 August 4, 2026 06:04
@HelixCraft

Copy link
Copy Markdown
Owner

Hey @GG-MD , thanks a lot for this! The Mojang-mapping port is a huge lift. really appreciate you taking care of the build setup, the unpackers, and especially catching that whitelist logging gap and the recursive bundle unpacking. That's a genuinely useful fix.
I've merged it into the mc-26.2 branch. Great work!

@HelixCraft
HelixCraft merged commit 44ae10e into HelixCraft:mc-26.2 Aug 4, 2026
1 check passed
@HelixCraft

Copy link
Copy Markdown
Owner

@GG-MD Hi again, me! I've been busy the last few days and wanted to give you an update on where things stand.
I ported the whole project over to Stonecutter, so it now builds for a full matrix of Minecraft versions: 1.21 through 1.21.11, plus 26.1, 26.1.1, 26.1.2, and 26.2. That means your Mojang-mapping port for 26.2 and the whole versioned build setup are now folded into one shared multi-version tree, and every version builds clean.
I also did a full pass over the packet system:

  • Reworked the packet catalog across S2C and C2S — lots of previously missing packets are now logged, and packets that weren't fully unpacked now include their complete data (NBT/Component).
  • Kept and verified your fixes around the whitelist logging gap and the recursive bundle unpacking.
  • Added a configurable keybind to toggle packet logging on/off.
  • Added autosave to the config screen (plus a Cancel button that reverts to the state when the screen was opened) and fixed a search-field focus bug.
  • Moved log storage into a dedicated packet-logger folder and enriched the log header with client/session metadata.
    I just published the new 1.1.2 build to Modrinth as well.
    I mainly wanted to check in: is everything looking good/fixed on your side, including in my new Stonecutter branch? Let me know if anything needs another pass.

@GG-MD

GG-MD commented Aug 8, 2026

Copy link
Copy Markdown
Author

bug:
image

@HelixCraft, hi thx for new update <3

@GG-MD

GG-MD commented Aug 8, 2026 •

Copy link
Copy Markdown
Author

/packetlogger/screen/widget/DualListSelectorWidget.java 156 , 185 , 210 lines.

/packetlogger/screen/SimpleConfigScreen.java 181 line

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