Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Apr 16, 2023
1 parent 21ba22e commit 7f52dfd
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -237,7 +237,7 @@ public boolean equals(ItemStack a, ItemStack b) {
}

// Descending sort
// if counts are equal, push groups with lowest slot index to top
// if counts are equal, push groups with the lowest slot index to the top
countedAndSorted.sort((o1, o2) -> {
int compare = Long.compare(o2.totalItemCount, o1.totalItemCount);

Expand Down Expand Up @@ -274,7 +274,8 @@ public boolean equals(ItemStack a, ItemStack b) {
.get(requiredItemStack)
.stream()
.flatMap(PhantomSlotStateList::stream)
.findFirst().orElse(null);
.findFirst()
.orElse(null);

if (matching == null) {
transferOperations.missingItems.add(requiredItemStack);
Expand Down

0 comments on commit 7f52dfd

Please sign in to comment.