Fixed patterns being able to crash when no inputs are provided, fixes #1537
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
- Removed craft-only mode for the Exporter (raoulvdberge)
|
- Removed craft-only mode for the Exporter (raoulvdberge)
|
||||||
- Fixed Exporter with Stack Upgrade not working correctly in Regulator Mode (raoulvdberge)
|
- Fixed Exporter with Stack Upgrade not working correctly in Regulator Mode (raoulvdberge)
|
||||||
- Fixed crash with the Constructor (raoulvdberge)
|
- Fixed crash with the Constructor (raoulvdberge)
|
||||||
|
- Fixed patterns being able to crash when no inputs are provided (raoulvdberge)
|
||||||
|
|
||||||
### 1.5.23
|
### 1.5.23
|
||||||
- Fixed duplication bug with autocrafting (raoulvdberge)
|
- Fixed duplication bug with autocrafting (raoulvdberge)
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ public class CraftingPattern implements ICraftingPattern {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
return inputs.stream().filter(Objects::nonNull).count() > 0 && !outputs.isEmpty();
|
return !inputs.isEmpty() && inputs.stream().filter(Objects::nonNull).count() > 0 && !outputs.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user