Merge pull request #638 from Dynious/RecipeMapping

Better handling of null WrappedStack input in RecipeMapping
This commit is contained in:
pahimar 2014-02-14 10:21:23 -05:00
commit de4efefebb

View file

@ -34,16 +34,14 @@ public class RecipeMapping implements JsonSerializer<RecipeMapping>, JsonDeseria
{
wrappedStacks.add(wrappedStack);
}
else
{
LogHelper.warning(String.format("RecipeMapping with output: %s is containing a null WrappedStack " +
"input that will not be added to the input list.", outputWrappedStack.toString()));
}
}
if (inputStacks.size() == wrappedStacks.size())
{
this.inputWrappedStacks = wrappedStacks;
}
else
{
this.inputWrappedStacks = null;
}
this.inputWrappedStacks = wrappedStacks;
}
public static RecipeMapping createFromJson(String jsonRecipeMapping)