Skip to content

Commit

Permalink
Fix schematicannon sometimes requiring air to build multistate copycats
Browse files Browse the repository at this point in the history
  • Loading branch information
hlysine committed Aug 29, 2024
1 parent e851969 commit e103528
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public Set<MaterialItem> getAllMaterialItems() {
* Get all consumed items stored in this storage. Empty stacks are not included.
*/
public List<ItemStack> getAllConsumedItems() {
return storage.values().stream().map(MaterialItem::consumedItem).dropWhile(itemStack -> itemStack.equals(ItemStack.EMPTY)).collect(Collectors.toList());
return storage.values().stream().map(MaterialItem::consumedItem).filter(stack -> !stack.isEmpty()).collect(Collectors.toList());
}

/**
Expand Down

0 comments on commit e103528

Please sign in to comment.