Fixes #604 Crash on crafting

The AE2 has in the contract that the item field in an IAEItemDefinition can be null due to the fact, if a special item is deactivated. This needs to be checked.

The base code was enhanced through Javadoc and split in responsibilities
This commit is contained in:
thatsIch
2014-12-19 12:28:41 +01:00
parent fc07acbced
commit 48f9ca1fcb
6 changed files with 293 additions and 99 deletions
+3 -1
View File
@@ -588,7 +588,9 @@ public class Registration
recipeHandler.injectRecipes();
PlayerStatsRegistration.instance.init();
final PlayerStatsRegistration registration = new PlayerStatsRegistration( FMLCommonHandler.instance().bus(), AEConfig.instance );
registration.registerAchievementHandlers();
registration.registerAchievements();
if ( AEConfig.instance.isFeatureEnabled( AEFeature.enableDisassemblyCrafting ) )
CraftingManager.getInstance().getRecipeList().add( new DisassembleRecipe() );