Browse Source

Worker saved upon submit

combat-2
MagicBot 7 months ago
parent
commit
bb5904552a
  1. 5
      src/engine/gameManager/ForgeManager.java

5
src/engine/gameManager/ForgeManager.java

@ -16,7 +16,6 @@ import engine.net.DispatchMessage; @@ -16,7 +16,6 @@ import engine.net.DispatchMessage;
import engine.net.client.msg.ItemProductionMsg;
import engine.objects.*;
import engine.powers.EffectsBase;
import org.json.JSONObject;
import org.pmw.tinylog.Logger;
import java.util.ArrayList;
@ -143,7 +142,9 @@ public enum ForgeManager implements Runnable { @@ -143,7 +142,9 @@ public enum ForgeManager implements Runnable {
vendorWorkOrderLookup.get(workOrder.vendor).add(workOrder);
forge.add(workOrder);
JSONObject jsonWorkOrder = WorkOrder.toJson(workOrder);
// Save workOrder to disk
DbManager.WarehouseQueries.UPDATE_WORKORDER(workOrder);
} catch (Exception e) {
Logger.error(e);

Loading…
Cancel
Save