diff --git a/src/main/java/forestry/factory/gadgets/MachineFabricator.java b/src/main/java/forestry/factory/gadgets/MachineFabricator.java index 1d43f5ff7..3a1f4a6b3 100755 --- a/src/main/java/forestry/factory/gadgets/MachineFabricator.java +++ b/src/main/java/forestry/factory/gadgets/MachineFabricator.java @@ -577,12 +577,7 @@ public class MachineFabricator extends TilePowered implements ICrafter, ILiquidT return RecipeManager.findMatchingSmelting(itemStack) != null; } else if (slotIndex == SLOT_PLAN) { return RecipeManager.isPlan(itemStack); - } - return GuiUtil.isIndexInRange(slotIndex, SLOT_INVENTORY_1, SLOT_INVENTORY_COUNT); - } - @Override - public boolean isItemValidForSlot(int slotIndex, ItemStack itemStack) { - if (GuiUtil.isIndexInRange(slotIndex, SLOT_INVENTORY_1, SLOT_INVENTORY_COUNT)) { + } else if (GuiUtil.isIndexInRange(slotIndex, SLOT_INVENTORY_1, SLOT_INVENTORY_COUNT)) { if (tile.getRecipe() != null) { return tile.getRecipe().internal.isIngredient(itemStack); }else if (RecipeManager.isPlan(itemStack) ) { @@ -591,8 +586,8 @@ public class MachineFabricator extends TilePowered implements ICrafter, ILiquidT return false; } } - return true; - } + return GuiUtil.isIndexInRange(slotIndex, SLOT_INVENTORY_1, SLOT_INVENTORY_COUNT); + } @Override public boolean canExtractItem(int slotIndex, ItemStack stack, int side) {