Fixes #170 and fixes #167

This commit is contained in:
Modmuss50 2015-10-07 08:34:24 +01:00
parent 7d052a3292
commit 9c52e0ace7
27 changed files with 41 additions and 112 deletions

View file

@ -26,7 +26,7 @@ public class CompatManager {
registerCompact(RecipesNatura.class, "Natura");
registerCompact(RecipesBiomesOPlenty.class, "BiomesOPlenty");
registerCompact(RecipesThaumcraft.class, "Thaumcraft");
registerCompact(RecipesForestry.class, "Forestry");
registerCompact(RecipesForestry.class, "Forestry", isForestry4());
registerCompact(MinetweakerCompat.class, "MineTweaker3");
}
@ -57,4 +57,13 @@ public class CompatManager {
e.printStackTrace();
}
}
public boolean isForestry4(){
try {
Class.forName("forestry.api.arboriculture.EnumWoodType");
return true;
} catch( ClassNotFoundException e ) {
return false;
}
}
}