Skip to content

Commit fd8d488

Browse files
authored
Merge pull request #433 from Satherov/1.21
fix: fixing my silliness
2 parents ceada7e + fc92231 commit fd8d488

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/buuz135/functionalstorage/inventory/CompactingInventoryHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ private boolean isVoidValid(ItemStack stack) {
7777
return false;
7878
}
7979

80-
public boolean isSetup(){
81-
return !this.resultList.get(this.resultList.size() -1).getResult().isEmpty();
80+
public boolean isSetup() {
81+
return resultList.stream().anyMatch(result -> !result.getResult().isEmpty());
8282
}
8383

8484
public void setup(CompactingUtil compactingUtil){

0 commit comments

Comments
 (0)