Re-enabled mixins

This commit is contained in:
Adubbz 2015-01-13 08:35:49 +11:00
parent 7fbf148e73
commit 6363c1c642
2 changed files with 11 additions and 9 deletions

View File

@ -80,9 +80,10 @@ jar {
manifest {
attributes 'FMLCorePlugin': 'biomesoplenty.common.asm.BOPLoadingPlugin'
attributes 'FMLCorePluginContainsFMLMod': 'true'
attributes 'ForceLoadAsMod': true
attributes 'FMLAT': 'biomesoplenty_at.cfg'
//attributes 'TweakClass': "org.spongepowered.asm.launch.MixinTweaker"
//attributes 'TweakOrder': "10000"
attributes 'TweakClass': "org.spongepowered.asm.launch.MixinTweaker"
attributes 'TweakOrder': "10000"
}
classifier = 'universal'

View File

@ -10,26 +10,27 @@ package biomesoplenty.common.asm;
import java.util.Map;
//import org.spongepowered.asm.launch.MixinBootstrap;
//import org.spongepowered.asm.mixin.MixinEnvironment;
import biomesoplenty.common.asm.transformers.BOPAccessTransformer;
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin;
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin.TransformerExclusions;
import org.spongepowered.asm.launch.MixinBootstrap;
import org.spongepowered.asm.mixin.MixinEnvironment;
import biomesoplenty.common.asm.transformers.BOPAccessTransformer;
@TransformerExclusions("biomesoplenty.common.asm")
public class BOPLoadingPlugin implements IFMLLoadingPlugin
{
public BOPLoadingPlugin()
{
//MixinBootstrap.init();
//MixinEnvironment.getCurrentEnvironment().addConfiguration("mixins.biomesoplenty.json");
MixinBootstrap.init();
MixinEnvironment.getCurrentEnvironment().addConfiguration("mixins.biomesoplenty.json");
}
@Override
public String[] getASMTransformerClass()
{
return new String[] { /*MixinBootstrap.TRANSFORMER_CLASS*/ };
return new String[] { MixinBootstrap.TRANSFORMER_CLASS };
}
@Override