Fixed stack size

This commit is contained in:
modmuss50 2015-05-16 19:26:26 +01:00
parent 1b308c56d6
commit 9b654eb1de

View file

@ -142,8 +142,8 @@ public class RecipeCrafter {
} }
for(ItemStack input : currentRecipe.getInputs()){ for(ItemStack input : currentRecipe.getInputs()){
Boolean hasItem = false; Boolean hasItem = false;
for(int inputslot : inputSlots){ for(int inputSlot : inputSlots){
if(ItemUtils.isItemEqual(input, inventory.getStackInSlot(inputslot), true, true, true)){ if(ItemUtils.isItemEqual(input, inventory.getStackInSlot(inputSlot), true, true, true) && inventory.getStackInSlot(inputSlot).stackSize >= input.stackSize){
hasItem = true; hasItem = true;
} }
} }