Skip to content

Commit

Permalink
Move removal of hoe recipes to postInit
Browse files Browse the repository at this point in the history
 * Probably fixes #75
  • Loading branch information
squeek502 committed Feb 17, 2015
1 parent a792dc6 commit 8e835b9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/main/java/iguanaman/hungeroverhaul/HungerOverhaul.java
Expand Up @@ -52,13 +52,6 @@ public void preInit(FMLPreInitializationEvent event)
FMLCommonHandler.instance().bus().register(new IguanaConfig());
JsonModule.preinit(event.getModConfigurationDirectory());
potionWellFed = new PotionWellFed();

if (IguanaConfig.removeHoeRecipes)
{
RecipeRemover.removeAnyRecipe(new ItemStack(Items.wooden_hoe));
RecipeRemover.removeAnyRecipe(new ItemStack(Items.stone_hoe));
}

}

@EventHandler
Expand Down Expand Up @@ -105,6 +98,12 @@ public void postInit(FMLPostInitializationEvent event)
ItemTweaks.init();
MinecraftForge.EVENT_BUS.register(new IguanaEventHook());
FMLCommonHandler.instance().bus().register(new ModuleRespawnHunger());

if (IguanaConfig.removeHoeRecipes)
{
RecipeRemover.removeAnyRecipe(new ItemStack(Items.wooden_hoe));
RecipeRemover.removeAnyRecipe(new ItemStack(Items.stone_hoe));
}
}

@EventHandler
Expand Down

0 comments on commit 8e835b9

Please sign in to comment.