Fixed issue when not enough imports are present.

This commit is contained in:
modmuss50 2015-06-07 18:22:31 +01:00
parent 089f5500e6
commit 950f556770

View file

@ -192,7 +192,7 @@ public class RecipeCrafter {
for (ItemStack input : recipeType.getInputs()) {
Boolean hasItem = false;
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;
}
}