mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-26 20:53:06 +00:00
Update to ModLauncher 7.0 - Fixes #439
This commit is contained in:
1 parent
943894557e
commit
9f5191d100
7 files changed
+47
-12
No files matched your search
@@ -359,7 +359,6 @@ public class MixinProcessor {
|
||||
} catch (MixinTransformerError er) {
|
||||
throw er;
|
||||
} catch (Throwable th) {
|
||||
th.printStackTrace();
|
||||
this.dumpClassOnFailure(name, targetClassNode, environment);
|
||||
throw new MixinTransformerError("An unexpected critical error was encountered", th);
|
||||
} finally {
|
||||
@@ -374,9 +373,9 @@ public class MixinProcessor {
|
||||
return String.format("Illegal classload request for %s. Mixin is defined in %s and cannot be referenced directly", name, ownedByConfig);
|
||||
}
|
||||
|
||||
// AnnotationNode shadow = Annotations.getInvisible(targetClassNode, Shadow.class);
|
||||
// if (shadow != null) {
|
||||
// return String.format("Illegal classload request for UNRESOLVED @Shadow %s. "
|
||||
// AnnotationNode proxy = Annotations.getInvisible(targetClassNode, Proxy.class);
|
||||
// if (proxy != null) {
|
||||
// return String.format("Illegal classload request for UNRESOLVED @Proxy %s. "
|
||||
// + "The proxy was referenced outside a mixin or the mixin processor encountered an internal error.", name);
|
||||
// }
|
||||
|
||||
|
||||
@@ -178,6 +178,23 @@ class MixinTransformer extends TreeTransformer implements IMixinTransformer {
|
||||
return this.transformClass(environment, transformedName, basicClass);
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the transformation reason is computing_frames. The only
|
||||
* operation we care about here is adding interfaces to target classes but
|
||||
* at the moment we don't have sufficient scaffolding to determine that
|
||||
* without triggering re-entrance. Currently just a no-op in order to not
|
||||
* cause a re-entrance crash under ModLauncher 7.0+.
|
||||
*
|
||||
* @param environment Current environment
|
||||
* @param name Class transformed name
|
||||
* @param classNode Class tree
|
||||
* @return true if the class was transformed
|
||||
*/
|
||||
public boolean computeFramesForClass(MixinEnvironment environment, String name, ClassNode classNode) {
|
||||
// TODO compute added interfaces
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply mixins and postprocessors to the supplied class
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user