Fixed crafting steps inserting items when it has missing items.
This commit is contained in:
@@ -45,11 +45,11 @@ public class CraftingExtractor {
|
||||
}
|
||||
|
||||
public boolean isAllAvailable() {
|
||||
return status.stream().allMatch(s -> s == CraftingExtractorItemStatus.AVAILABLE || s == CraftingExtractorItemStatus.EXTRACTED);
|
||||
return !items.isEmpty() && status.stream().allMatch(s -> s == CraftingExtractorItemStatus.AVAILABLE || s == CraftingExtractorItemStatus.EXTRACTED);
|
||||
}
|
||||
|
||||
public boolean isAllExtracted() {
|
||||
return status.stream().allMatch(s -> s == CraftingExtractorItemStatus.EXTRACTED);
|
||||
return !items.isEmpty() && status.stream().allMatch(s -> s == CraftingExtractorItemStatus.EXTRACTED);
|
||||
}
|
||||
|
||||
public void extractOne() {
|
||||
|
||||
@@ -170,7 +170,6 @@ public class ItemGridHandler implements IItemGridHandler {
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO why?
|
||||
IStackList<ItemStack> cache = API.instance().createItemStackList();
|
||||
|
||||
for (ICraftingPattern pattern : network.getCraftingManager().getPatterns()) {
|
||||
|
||||
Reference in New Issue
Block a user