|
|
|
@ -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); |
|
|
|
|