fix bug that prevents preview if items are missing (#2534)
This commit is contained in:
@@ -260,13 +260,14 @@ public class CraftingTask implements ICraftingTask {
|
|||||||
req.setAmount(qty);
|
req.setAmount(qty);
|
||||||
this.toCraftFluids.add(req);
|
this.toCraftFluids.add(req);
|
||||||
}
|
}
|
||||||
|
if(missing.isEmpty()){
|
||||||
crafts.values().forEach(c -> {
|
crafts.values().forEach(c -> {
|
||||||
totalSteps += c.getQuantity();
|
totalSteps += c.getQuantity();
|
||||||
if (c instanceof Processing) {
|
if (c instanceof Processing) {
|
||||||
((Processing) c).finishCalculation();
|
((Processing) c).finishCalculation();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user