Skip to content

Commit

Permalink
code review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AndKram committed May 13, 2019
1 parent a20590d commit 565762f
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ public IMessage onMessage(CraftMessage message, MessageContext ctx)
// Try crafting recipes first:
List<IRecipe> matching_recipes;
String[] split = message.parameters.split(" ");
if (split.length > 1)
matching_recipes = CraftingHelper.getRecipesForRequestedOutput(message.parameters, true);
else
matching_recipes = CraftingHelper.getRecipesForRequestedOutput(message.parameters, false);
matching_recipes = CraftingHelper.getRecipesForRequestedOutput(message.parameters, split.length > 1);

for (IRecipe recipe : matching_recipes)
{
Expand Down

0 comments on commit 565762f

Please sign in to comment.