Skip to content
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

Fixes crashes caused by reflection loading. #602

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -70,7 +70,7 @@
/**
* Heart of the Mixin pipeline
*/
class MixinProcessor {
public class MixinProcessor {

/**
* Phase during which an error occurred, delegates to functionality in
Expand Down Expand Up @@ -505,7 +505,15 @@ private void selectConfigs(MixinEnvironment environment) {

Collections.sort(this.pendingConfigs);
}


/**
* Literally only here to prevent a crash because some mods use reflection to access this method.
*/
@Deprecated
private int prepareConfigs(MixinEnvironment environment) {
this.prepareConfigs(environment, this.extensions);
}

/**
* Prepare mixin configs
*
Expand Down
Expand Up @@ -42,7 +42,7 @@
/**
* Transformer which manages the mixin configuration and application process
*/
final class MixinTransformer extends TreeTransformer implements IMixinTransformer {
public final class MixinTransformer extends TreeTransformer implements IMixinTransformer {

/**
* Impl of mixin transformer factory
Expand Down