Fix for fix #1971- Accounted for <= 64 stacks thus not in stored stack

This commit is contained in:
Justin Vitale 2020-01-12 09:13:22 +11:00
parent eb9abe4c74
commit f2138e034f

View file

@ -384,7 +384,7 @@ public class StorageUnitBaseBlockEntity extends MachineBaseBlockEntity
@Override
public boolean isValidInvStack(int slot, ItemStack stack) {
if (slot == INPUT_SLOT && !storeItemStack.isEmpty() && !ItemUtils.isItemEqual(stack, storeItemStack, true, false)) {
if (slot == INPUT_SLOT && !(isEmpty() || isSameType(stack))) {
return false;
}
return super.isValidInvStack(slot, stack);