We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ceada7e + fc92231 commit fd8d488Copy full SHA for fd8d488
src/main/java/com/buuz135/functionalstorage/inventory/CompactingInventoryHandler.java
@@ -77,8 +77,8 @@ private boolean isVoidValid(ItemStack stack) {
77
return false;
78
}
79
80
- public boolean isSetup(){
81
- return !this.resultList.get(this.resultList.size() -1).getResult().isEmpty();
+ public boolean isSetup() {
+ return resultList.stream().anyMatch(result -> !result.getResult().isEmpty());
82
83
84
public void setup(CompactingUtil compactingUtil){
0 commit comments