forked from MagicBane/Server
Multiple item workOrder work
This commit is contained in:
@@ -100,9 +100,9 @@ public enum ForgeManager implements Runnable {
|
|||||||
workOrder.production_cost_total.putAll(workOrder.production_cost);
|
workOrder.production_cost_total.putAll(workOrder.production_cost);
|
||||||
workOrder.production_cost_total.forEach((key, value) -> workOrder.production_cost_total.compute(key, (k, v) -> v * workOrder.total_to_produce));
|
workOrder.production_cost_total.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;
|
// Single item rolls are msg_size of 0;
|
||||||
|
|
||||||
if (workOrder.slots_used > 0 && workOrder.total_to_produce == 0)
|
if (workOrder.slots_used > 0 && workOrder.msg_size == 0)
|
||||||
workOrder.slots_used = 1;
|
workOrder.slots_used = 1;
|
||||||
|
|
||||||
// Create in-memory items and add to collections
|
// Create in-memory items and add to collections
|
||||||
|
|||||||
Reference in New Issue
Block a user