Clean up forestry version checker

This commit is contained in:
Modmuss50 2015-10-06 20:47:50 +01:00
parent 4683f1450f
commit 599ab5d634

View file

@ -22,6 +22,7 @@ import techreborn.api.recipe.machines.IndustrialSawmillRecipe;
import techreborn.compat.CompatManager;
import techreborn.compat.ICompatModule;
import techreborn.config.ConfigTechReborn;
import techreborn.util.LogHelper;
import java.util.Iterator;
import java.util.Map;
@ -29,10 +30,9 @@ import java.util.Map;
public class RecipesForestry implements ICompatModule {
@Override
public void preInit(FMLPreInitializationEvent event) {
System.out.println(Version.VERSION);
System.out.println();
if(!Version.VERSION.split(".")[0].equals("4")){
CompatManager.INSTANCE.compatModules.remove(this);
LogHelper.error("Disabled forestry integration because you are not using forestry version 4!");
}
}