Merge pull request #638 from Dynious/RecipeMapping
Better handling of null WrappedStack input in RecipeMapping
This commit is contained in:
commit
de4efefebb
1 changed files with 6 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue