diff --git a/src/java/mmm/tech/base/workbench/TBWBCraftingSlot.java b/src/java/mmm/tech/base/workbench/TBWBCraftingSlot.java index 215c603..c35bc7d 100644 --- a/src/java/mmm/tech/base/workbench/TBWBCraftingSlot.java +++ b/src/java/mmm/tech/base/workbench/TBWBCraftingSlot.java @@ -37,6 +37,21 @@ public class TBWBCraftingSlot } + @Override + public boolean canTakeStack( EntityPlayer playerIn ) + { + if ( !this.getHasStack( ) ) { + return false; + } + final I_CraftingRecipeWrapper wrapper = this.container.getCurrentRecipe( ); + if ( wrapper == null ) { + return false; + } + final IInventory storage = this.container.getStorage( ); + return storage != null && wrapper.getRequirements( ).checkInventory( storage , 1 , this.container.world ); + } + + @Override public ItemStack decrStackSize( final int amount ) {