Skip to content

Commit

Permalink
fix a config issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
WanionCane committed Jul 17, 2016
1 parent 7552a92 commit 100be4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/wanion/jeihider/JEIHider.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public class JEIHider implements IModPlugin
public JEIHider() throws ClassNotFoundException
{
final Configuration config = new Configuration(new File("." + File.separatorChar + "config" + File.separatorChar + "jeih.cfg"));
hideRecyclerRecipes = Loader.isModLoaded("IC2") && config.get("hideRecyclerRecipes", Configuration.CATEGORY_GENERAL, false).getBoolean();
hideEnchantmentRecipes = Loader.isModLoaded("jeresources") && config.get("hideEnchantmentRecipes", Configuration.CATEGORY_GENERAL, false).getBoolean();
hideRecyclerRecipes = Loader.isModLoaded("IC2") && config.get(Configuration.CATEGORY_GENERAL, "hideRecyclerRecipes", false).getBoolean();
hideEnchantmentRecipes = Loader.isModLoaded("jeresources") && config.get(Configuration.CATEGORY_GENERAL, "hideEnchantmentRecipes", false).getBoolean();
recyclerCategoryClass = hideRecyclerRecipes ? (Class<? extends IRecipeCategory>) Class.forName("ic2.jeiIntegration.recipe.misc.ScrapboxRecipeCategory") : null;
enchantmentCategoryClass = hideEnchantmentRecipes ? (Class<? extends IRecipeCategory>) Class.forName("jeresources.jei.enchantment.EnchantmentCategory") : null;
if (config.hasChanged())
Expand Down

0 comments on commit 100be4a

Please sign in to comment.