forked from MagicBane/Server
More workorder loading work
This commit is contained in:
@@ -202,23 +202,17 @@ public class dbWarehouseHandler extends dbHandlerBase {
|
||||
Logger.error(e);
|
||||
}
|
||||
|
||||
// Process workOrder records
|
||||
// Remove the old workOrder records
|
||||
|
||||
for (WorkOrder workOrder : submitList)
|
||||
DbManager.WarehouseQueries.DELETE_WORKORDER(workOrder);
|
||||
|
||||
// Submit the new workOrders to the ForgeManager
|
||||
|
||||
for (WorkOrder workOrder : submitList) {
|
||||
|
||||
// WorkOrder needs a new ID
|
||||
|
||||
workOrder.workOrderID = ForgeManager.wordOrderCounter.incrementAndGet();
|
||||
|
||||
// Reconstruct cooking items
|
||||
|
||||
ForgeManager.vendorWorkOrderLookup.get(workOrder.vendor).add(workOrder);
|
||||
|
||||
}
|
||||
// Pass the new workOrders to the ForgeManager
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user