|
|
|
@ -105,8 +105,7 @@ public enum ForgeManager implements Runnable {
@@ -105,8 +105,7 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
|
|
|
|
|
// Set total cost for this production run
|
|
|
|
|
|
|
|
|
|
for (mbEnums.ResourceType resourceType : workOrder.production_cost.keySet()) |
|
|
|
|
workOrder.production_cost.compute(resourceType, (k, resourceValue) -> resourceValue * workOrder.total_to_produce); |
|
|
|
|
workOrder.production_cost.forEach((key, value) -> workOrder.production_cost_total.compute(key, (k, v) -> v * workOrder.total_to_produce)); |
|
|
|
|
|
|
|
|
|
// Single item rolls are total_to_produce of 0;
|
|
|
|
|
|
|
|
|
|