Skip to content

Unobfuscated support#41

Merged
isXander merged 5 commits intomasterfrom
feature/loom-noremap
Jan 3, 2026
Merged

Unobfuscated support#41
isXander merged 5 commits intomasterfrom
feature/loom-noremap

Conversation

@isXander
Copy link
Owner

@isXander isXander commented Jan 3, 2026

Recent Minecraft snapshots are no longer obfuscated. This PR aims to allow Modstitch to work with such versions.

  • Renamed legacy loom platform to fabric-loom-remap and added new fabric-loom platform for no-remap versions
  • Rewrote AccessWidener parsing to allow for new ClassTweaker format

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for unobfuscated Minecraft snapshots (starting with 26.1-snapshot-1) by introducing a comprehensive ClassTweaker system to replace the previous AccessWidener implementation. The key changes include:

  • Renamed the legacy loom platform to fabric-loom-remap for versions requiring remapping, and added a new fabric-loom platform for unobfuscated versions
  • Rewrote AccessWidener parsing into a more flexible ClassTweaker format that supports multiple formats (AT, AW_V1, AW_V2, and the new CT format)
  • Added version detection logic to identify unobfuscated Minecraft versions

Reviewed changes

Copilot reviewed 45 out of 47 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/main/kotlin/dev/isxander/modstitch/util/ClassTweaker.kt New comprehensive ClassTweaker implementation replacing AccessWidener with support for multiple formats
src/main/kotlin/dev/isxander/modstitch/util/MinecraftVersion.kt Completely rewritten to support modern (year.drop) and legacy (1.minor.patch) version formats with proper comparison
src/main/kotlin/dev/isxander/modstitch/base/loom/BaseLoomImpl.kt Updated to support both remapping and non-remapping Loom platforms
src/main/kotlin/dev/isxander/modstitch/base/extensions/Modstitch.kt Renamed accessWidener properties to classTweaker, added isUnobfuscated detection
src/main/kotlin/dev/isxander/modstitch/util/Platform.kt Added LoomRemap platform and updated platform enumeration
src/test/kotlin/dev/isxander/modstitch/unit/ClassTweakerTest.kt New comprehensive test suite for ClassTweaker format parsing and conversion
gradle.properties Updated Loom and ModDevGradle dependency versions
build.gradle.kts Updated plugin-publish version
Comments suppressed due to low confidence (1)

src/test/kotlin/dev/isxander/modstitch/integration/ClassTweakerIntegration.kt:53

  • Debug println statement should be removed before merging to production.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@isXander isXander merged commit 3d36ce2 into master Jan 3, 2026
1 check passed
@isXander isXander deleted the feature/loom-noremap branch January 3, 2026 16:02
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