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 { manifest {
attributes 'FMLCorePlugin': 'biomesoplenty.common.asm.BOPLoadingPlugin' attributes 'FMLCorePlugin': 'biomesoplenty.common.asm.BOPLoadingPlugin'
attributes 'FMLCorePluginContainsFMLMod': 'true' attributes 'FMLCorePluginContainsFMLMod': 'true'
attributes 'ForceLoadAsMod': true
attributes 'FMLAT': 'biomesoplenty_at.cfg' attributes 'FMLAT': 'biomesoplenty_at.cfg'
//attributes 'TweakClass': "org.spongepowered.asm.launch.MixinTweaker" attributes 'TweakClass': "org.spongepowered.asm.launch.MixinTweaker"
//attributes 'TweakOrder': "10000" attributes 'TweakOrder': "10000"
} }
classifier = 'universal' classifier = 'universal'

View File

@ -10,26 +10,27 @@ package biomesoplenty.common.asm;
import java.util.Map; 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;
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin.TransformerExclusions; 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") @TransformerExclusions("biomesoplenty.common.asm")
public class BOPLoadingPlugin implements IFMLLoadingPlugin public class BOPLoadingPlugin implements IFMLLoadingPlugin
{ {
public BOPLoadingPlugin() public BOPLoadingPlugin()
{ {
//MixinBootstrap.init(); MixinBootstrap.init();
//MixinEnvironment.getCurrentEnvironment().addConfiguration("mixins.biomesoplenty.json"); MixinEnvironment.getCurrentEnvironment().addConfiguration("mixins.biomesoplenty.json");
} }
@Override @Override
public String[] getASMTransformerClass() public String[] getASMTransformerClass()
{ {
return new String[] { /*MixinBootstrap.TRANSFORMER_CLASS*/ }; return new String[] { MixinBootstrap.TRANSFORMER_CLASS };
} }
@Override @Override