From 05974153d7aab4b73abb182053744d82c1034626 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Fri, 29 Aug 2014 21:35:07 -0500 Subject: [PATCH] Re-enabled AlphaPass for Immibis's Microblocks 59.0.3+ --- core/AEConfig.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/core/AEConfig.java b/core/AEConfig.java index ad20f50b..eec1b31e 100644 --- a/core/AEConfig.java +++ b/core/AEConfig.java @@ -1,7 +1,9 @@ package appeng.core; import java.io.File; +import java.util.Arrays; import java.util.EnumSet; +import java.util.List; import net.minecraftforge.common.config.Configuration; import net.minecraftforge.common.config.Property; @@ -22,6 +24,7 @@ import appeng.util.IConfigManagerHost; import appeng.util.Platform; import cpw.mods.fml.client.event.ConfigChangedEvent; import cpw.mods.fml.common.FMLCommonHandler; +import cpw.mods.fml.common.ModContainer; import cpw.mods.fml.common.eventhandler.SubscribeEvent; public class AEConfig extends Configuration implements IConfigureableObject, IConfigManagerHost @@ -268,8 +271,13 @@ public class AEConfig extends Configuration implements IConfigureableObject, ICo featureFlags.add( feature ); } - if ( cpw.mods.fml.common.Loader.isModLoaded( "ImmibisMicroblocks" ) ) - featureFlags.remove( AEFeature.AlphaPass ); + ModContainer imb = cpw.mods.fml.common.Loader.instance().getIndexedModList().get( "ImmibisCore" ); + if ( imb != null ) + { + List version = Arrays.asList( new String[] { "59.0.0", "59.0.1", "59.0.2" } ); + if ( version.contains( imb.getVersion() ) ) + featureFlags.remove( AEFeature.AlphaPass ); + } try {