Swallow the NPE caused when other mods add recipes with null inputs

Also swallows the NPE caused by players adding a dead and outdated mod to their instance.

Read as: Screw you BiblioWoods Forestry.
This commit is contained in:
Nick 2015-10-26 16:35:53 -07:00
parent 6e54f83ebd
commit b38db9ae7a
2 changed files with 25 additions and 5 deletions

View file

@ -3,6 +3,7 @@ package WayofTime.alchemicalWizardry.common.compress;
import java.util.LinkedList;
import java.util.List;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.InventoryCrafting;
@ -26,7 +27,7 @@ public class StorageBlockCraftingManager
{
this.recipes = new StorageBlockCraftingRecipeAssimilator().getPackingRecipes();
System.out.println("Total number of compression recipes: " + this.recipes.size());
AlchemicalWizardry.logger.info("Total number of compression recipes: " + this.recipes.size());
// List<IRecipe> tempRecipeList = new LinkedList();
//
// World world = DimensionManager.getWorld(0);