Skip to content

Commit

Permalink
some improvements, added config file, now it can get rid of recycler …
Browse files Browse the repository at this point in the history
…recipes and enchanting recipes.
  • Loading branch information
WanionCane committed Jul 17, 2016
1 parent 9ac09c1 commit 7281968
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/wanion/jeihider/JEIHider.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ public class JEIHider implements IModPlugin
@SuppressWarnings("unchecked")
public JEIHider() throws ClassNotFoundException
{
final Configuration config = new Configuration(new File("." + File.separatorChar + "JEI Hider.cfg"));
final Configuration config = new Configuration(new File("." + File.separatorChar + "config" + File.separatorChar + "JEI Hider.cfg"));
hideRecyclerRecipes = Loader.isModLoaded("IC2") && config.get("hideRecyclerRecipes", Configuration.CATEGORY_GENERAL, false).getBoolean();
hideEnchantmentRecipes = Loader.isModLoaded("IC2") && config.get("hideEnchantmentRecipes", Configuration.CATEGORY_GENERAL, false).getBoolean();
hideEnchantmentRecipes = Loader.isModLoaded("jeresources") && config.get("hideEnchantmentRecipes", Configuration.CATEGORY_GENERAL, false).getBoolean();
recyclerCategoryClass = hideRecyclerRecipes ? (Class<? extends IRecipeCategory>) Class.forName("ic2.jeiIntegration.recipe.misc.ScrapboxRecipeCategory") : null;
enchantmentCategoryClass = hideEnchantmentRecipes ? (Class<? extends IRecipeCategory>) Class.forName("") : null;
enchantmentCategoryClass = hideEnchantmentRecipes ? (Class<? extends IRecipeCategory>) Class.forName("jeresources.jei.enchantment.EnchantmentCategory") : null;
}

@Override
Expand Down

0 comments on commit 7281968

Please sign in to comment.