diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 5423d5b7..bef56746 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -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 { 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);