Added exceptions to the Recipe handlers. Don't crash, but log to the console what went wrong.
This commit is contained in:
@@ -800,7 +800,9 @@ public class RecipeHandler implements IRecipeHandler
|
||||
|
||||
return net.minecraft.item.crafting.Ingredient.fromStacks( itemStack );
|
||||
}
|
||||
return null;
|
||||
|
||||
AELog.warn( "Looking for ingredient with name '" + partName + "' ended up with a null item!" );
|
||||
return net.minecraft.item.crafting.Ingredient.EMPTY;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user