Clean up forestry version checker
This commit is contained in:
parent
4683f1450f
commit
599ab5d634
1 changed files with 2 additions and 2 deletions
|
@ -22,6 +22,7 @@ import techreborn.api.recipe.machines.IndustrialSawmillRecipe;
|
||||||
import techreborn.compat.CompatManager;
|
import techreborn.compat.CompatManager;
|
||||||
import techreborn.compat.ICompatModule;
|
import techreborn.compat.ICompatModule;
|
||||||
import techreborn.config.ConfigTechReborn;
|
import techreborn.config.ConfigTechReborn;
|
||||||
|
import techreborn.util.LogHelper;
|
||||||
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -29,10 +30,9 @@ import java.util.Map;
|
||||||
public class RecipesForestry implements ICompatModule {
|
public class RecipesForestry implements ICompatModule {
|
||||||
@Override
|
@Override
|
||||||
public void preInit(FMLPreInitializationEvent event) {
|
public void preInit(FMLPreInitializationEvent event) {
|
||||||
System.out.println(Version.VERSION);
|
|
||||||
System.out.println();
|
|
||||||
if(!Version.VERSION.split(".")[0].equals("4")){
|
if(!Version.VERSION.split(".")[0].equals("4")){
|
||||||
CompatManager.INSTANCE.compatModules.remove(this);
|
CompatManager.INSTANCE.compatModules.remove(this);
|
||||||
|
LogHelper.error("Disabled forestry integration because you are not using forestry version 4!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue