Fixed issue when not enough imports are present.
This commit is contained in:
parent
089f5500e6
commit
950f556770
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue