more !isEmpty checks to validate ItemStacks

This commit is contained in:
Xander Victory committed 2017-06-14 14:16:37 +08:00
1 parent 785cb2c683
commit f3cd020a31
4 files changed
+5 -5

No files matched your search

@@ -53,7 +53,7 @@ public class InfusionInput extends MachineInput<InfusionInput>
@Override
public boolean isValid()
{
return infuse.type != null && inputStack != null;
return infuse.type != null && inputStack != null && !inputStack.isEmpty();
}
public boolean use(NonNullList<ItemStack> inventory, int index, InfuseStorage infuseStorage, boolean deplete)