mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-25 09:54:24 +00:00
Merge remote-tracking branch 'remotes/sponge/master' into fabric-0.8
# Conflicts: # gradle.properties
This commit is contained in:
commit
279f1e6957
10 files changed
+122
-43
No files matched your search
@@ -61,7 +61,7 @@ public abstract class MixinBootstrap {
|
||||
/**
|
||||
* Subsystem version
|
||||
*/
|
||||
public static final String VERSION = "0.8.1";
|
||||
public static final String VERSION = "0.8.2";
|
||||
|
||||
/**
|
||||
* Log all the things
|
||||
|
||||
@@ -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