Skip to content

Commit

Permalink
Ooops, could have been a NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
founderio committed Dec 6, 2015
1 parent 9c6bbbd commit 78b27b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public static IProcessingRecipe getRecipe(int machine, ItemStack input) {
Map<Item, IProcessingRecipe[]> recipes = ProcessingRegistry.recipes[machine];

IProcessingRecipe[] matches = recipes.get(input.getItem());
Log.debug("Fetching recipe for machine " + machine + ": " + input + "->" + matches.length + " matches");

if(matches != null) {
Log.debug("Fetching recipe for machine " + machine + ": " + input + "->" + matches.length + " matches");
for(IProcessingRecipe recipe : matches) {
if(recipe != null && recipe.inputMatches(input)) {
Log.debug("Matching recipe " + recipe);
Expand Down

0 comments on commit 78b27b2

Please sign in to comment.