From d61096e1a9dedcde8ada784a45298888de846c83 Mon Sep 17 00:00:00 2001 From: mezz Date: Wed, 3 Jun 2015 23:37:36 -0700 Subject: [PATCH] Fix #698 Worktable is uncraftable --- .../java/forestry/core/utils/ShapedRecipeCustom.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/main/java/forestry/core/utils/ShapedRecipeCustom.java b/src/main/java/forestry/core/utils/ShapedRecipeCustom.java index 38596e907..a597df0de 100755 --- a/src/main/java/forestry/core/utils/ShapedRecipeCustom.java +++ b/src/main/java/forestry/core/utils/ShapedRecipeCustom.java @@ -80,22 +80,14 @@ public class ShapedRecipeCustom implements IDescriptiveRecipe { ItemStack[][] resources = new ItemStack[3][3]; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { - resources[i][j] = getStackInRowAndColumn(inventoryCrafting, i, j); + int k = i + j * 3; + resources[i][j] = inventoryCrafting.getStackInSlot(k); } } return matches(resources); } - public ItemStack getStackInRowAndColumn(IInventory inventory, int i, int j) { - if (i >= 0 && i < width) { - int k = i + j * width; - return inventory.getStackInSlot(k); - } else { - return null; - } - } - public boolean matches(ItemStack[][] resources) { for (int i = 0; i <= 3 - width; i++) {