Skip to content

Allow access wideners to modify any game or mod class, not only MC #1055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Player3324
Copy link
Contributor

@Player3324 Player3324 commented Jun 22, 2025

I don't think it's necessary to keep the restriction to Minecraft classes only. Fabric tends to be less restrictive and there are already ways to hack around it anyway.

Fixes part of #1049 and #1043

Note this would come on top of #1055 - making GameProvider.getBuiltinTransforms include BuiltinTransform.CLASS_TWEAKS in all cases. Other game provider can choose different behaviors.

@@ -30,7 +30,7 @@ public static byte[] transform(boolean isDevelopment, EnvType envType, String na
boolean isMinecraftClass = name.startsWith("net.minecraft.") || name.startsWith("com.mojang.blaze3d.") || name.indexOf('.') < 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this line can be removed too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I actually have another PR at #1056 that changes how this works, if the idea in this PR is accepted I'll rebase it onto that

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.

4 participants