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