mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 03:39:09 +00:00
Close #489 Worktable accept items from automation
This commit is contained in:
1 parent
62fcb24160
commit
b18cee80cb
1 file changed
+7
-2
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user