Browse Source

Persist item work

combat-2
MagicBot 8 months ago
parent
commit
1be657d3ef
  1. 4
      src/engine/gameManager/ForgeManager.java

4
src/engine/gameManager/ForgeManager.java

@ -59,11 +59,11 @@ public enum ForgeManager implements Runnable {
Logger.info("item forged:" + workOrder.workOrderID + " (" + workOrder.total_produced + "/" + workOrder.total_to_produce + ")"); Logger.info("item forged:" + workOrder.workOrderID + " (" + workOrder.total_produced + "/" + workOrder.total_to_produce + ")");
if (workOrder.total_produced >= workOrder.total_to_produce) {
// Complete this workOrder. Persist items currently in memory // Complete this workOrder. Persist items currently in memory
// and set the items as completed. // and set the items as completed.
if (workOrder.total_produced >= workOrder.total_to_produce) {
for (Item workOrderItem : workOrder.cooking) { for (Item workOrderItem : workOrder.cooking) {
workOrderItem.setDateToUpgrade(0); workOrderItem.setDateToUpgrade(0);

Loading…
Cancel
Save