Re-enabled AlphaPass for Immibis's Microblocks 59.0.3+
This commit is contained in:
parent
dcacf328c4
commit
05974153d7
1 changed files with 10 additions and 2 deletions
|
@ -1,7 +1,9 @@
|
||||||
package appeng.core;
|
package appeng.core;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.EnumSet;
|
import java.util.EnumSet;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import net.minecraftforge.common.config.Configuration;
|
import net.minecraftforge.common.config.Configuration;
|
||||||
import net.minecraftforge.common.config.Property;
|
import net.minecraftforge.common.config.Property;
|
||||||
|
@ -22,6 +24,7 @@ import appeng.util.IConfigManagerHost;
|
||||||
import appeng.util.Platform;
|
import appeng.util.Platform;
|
||||||
import cpw.mods.fml.client.event.ConfigChangedEvent;
|
import cpw.mods.fml.client.event.ConfigChangedEvent;
|
||||||
import cpw.mods.fml.common.FMLCommonHandler;
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
|
import cpw.mods.fml.common.ModContainer;
|
||||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||||
|
|
||||||
public class AEConfig extends Configuration implements IConfigureableObject, IConfigManagerHost
|
public class AEConfig extends Configuration implements IConfigureableObject, IConfigManagerHost
|
||||||
|
@ -268,8 +271,13 @@ public class AEConfig extends Configuration implements IConfigureableObject, ICo
|
||||||
featureFlags.add( feature );
|
featureFlags.add( feature );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( cpw.mods.fml.common.Loader.isModLoaded( "ImmibisMicroblocks" ) )
|
ModContainer imb = cpw.mods.fml.common.Loader.instance().getIndexedModList().get( "ImmibisCore" );
|
||||||
|
if ( imb != null )
|
||||||
|
{
|
||||||
|
List<String> version = Arrays.asList( new String[] { "59.0.0", "59.0.1", "59.0.2" } );
|
||||||
|
if ( version.contains( imb.getVersion() ) )
|
||||||
featureFlags.remove( AEFeature.AlphaPass );
|
featureFlags.remove( AEFeature.AlphaPass );
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue