From b18cee80cbaa3ddfed0d7003111df7f91f05700d Mon Sep 17 00:00:00 2001 From: mezz Date: Mon, 2 Feb 2015 00:31:03 -0800 Subject: [PATCH] Close #489 Worktable accept items from automation --- .../java/forestry/factory/gadgets/TileWorktable.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/forestry/factory/gadgets/TileWorktable.java b/src/main/java/forestry/factory/gadgets/TileWorktable.java index 157bf004e..5c12ba434 100755 --- a/src/main/java/forestry/factory/gadgets/TileWorktable.java +++ b/src/main/java/forestry/factory/gadgets/TileWorktable.java @@ -29,10 +29,10 @@ import forestry.core.network.PacketIds; import forestry.core.network.PacketTileNBT; import forestry.core.network.PacketTileUpdate; import forestry.core.proxy.Proxies; +import forestry.core.utils.GuiUtil; import forestry.core.utils.RecipeUtil; import forestry.factory.recipes.RecipeMemory; - public class TileWorktable extends TileBase implements ICrafter { /* CONSTANTS */ @@ -50,7 +50,12 @@ public class TileWorktable extends TileBase implements ICrafter { public TileWorktable() { craftingInventory = new TileInventoryAdapter(this, 10, "CraftItems"); - setInternalInventory(new TileInventoryAdapter(this, 18, "Items").disableAutomation()); + setInternalInventory(new TileInventoryAdapter(this, 18, "Items") { + @Override + public boolean canSlotAccept(int slotIndex, ItemStack itemStack) { + return GuiUtil.isIndexInRange(slotIndex, SLOT_INVENTORY_1, SLOT_INVENTORY_COUNT); + } + }); memorized = new RecipeMemory(); }