Downgrade pre-1.12 back to Mixin 0.7.10
This commit is contained in:
@@ -2,7 +2,6 @@ package com.replaymod.core;
|
|||||||
|
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.objectweb.asm.tree.ClassNode;
|
|
||||||
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
|
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
|
||||||
import org.spongepowered.asm.mixin.extensibility.IMixinInfo;
|
import org.spongepowered.asm.mixin.extensibility.IMixinInfo;
|
||||||
|
|
||||||
@@ -16,6 +15,12 @@ import java.io.InputStream;
|
|||||||
//$$ import net.minecraft.launchwrapper.Launch;
|
//$$ import net.minecraft.launchwrapper.Launch;
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
|
//#if MC>=11200
|
||||||
|
import org.objectweb.asm.tree.ClassNode;
|
||||||
|
//#else
|
||||||
|
//$$ import org.spongepowered.asm.lib.tree.ClassNode;
|
||||||
|
//#endif
|
||||||
|
|
||||||
public class ReplayModMixinConfigPlugin implements IMixinConfigPlugin {
|
public class ReplayModMixinConfigPlugin implements IMixinConfigPlugin {
|
||||||
static boolean hasClass(String name) throws IOException {
|
static boolean hasClass(String name) throws IOException {
|
||||||
//#if MC>=11400
|
//#if MC>=11400
|
||||||
|
|||||||
@@ -248,9 +248,11 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!FABRIC) {
|
if (!FABRIC) {
|
||||||
annotationProcessor 'org.spongepowered:mixin:0.8'
|
// Mixin 0.8 is no longer compatible with MC 1.11.2 or older
|
||||||
compileOnly 'org.spongepowered:mixin:0.8'
|
def mixinVersion = mcVersion >= 11200 ? '0.8' : '0.7.10-SNAPSHOT'
|
||||||
shade('org.spongepowered:mixin:0.8') {
|
annotationProcessor "org.spongepowered:mixin:$mixinVersion"
|
||||||
|
compileOnly "org.spongepowered:mixin:$mixinVersion"
|
||||||
|
shade("org.spongepowered:mixin:$mixinVersion") {
|
||||||
transitive = false // deps should all be bundled with MC
|
transitive = false // deps should all be bundled with MC
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user