Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Commit

Permalink
Don't attempt to craft tipped arrows in a 2x2 grid
Browse files Browse the repository at this point in the history
  • Loading branch information
gbl committed Mar 14, 2018
1 parent e9a4567 commit 00928cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/de/guntram/mcmod/easiercrafting/RecipeBook.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,9 @@ private boolean canCraftRecipe(IRecipe recipe, Container inventory, int gridSize
} else if (recipe instanceof ShapelessOreRecipe) {
return canCraftShapelessOre((ShapelessOreRecipe) recipe, inventory, gridSize);
} else if (recipe instanceof InventoryGeneratedRecipe) {
// We just generated the recipe so we should be able to craft it
return true;
// We just generated the recipe so we should be able to craft it,
// but make sure the grid is big enough
return recipe.canFit(gridSize, gridSize);
// return canCraft(recipe, recipe.getIngredients(), inventory);
} else {
//System.out.println(recipe.getRecipeOutput().getDisplayName()+" is a "+recipe.getClass().getCanonicalName());
Expand Down

0 comments on commit 00928cc

Please sign in to comment.