@ -10,6 +10,7 @@
@@ -10,6 +10,7 @@
package engine.db.handlers ;
import engine.gameManager.DbManager ;
import engine.gameManager.ForgeManager ;
import engine.loot.WorkOrder ;
import engine.mbEnums ;
import engine.mbEnums.GameObjectType ;
@ -201,12 +202,23 @@ public class dbWarehouseHandler extends dbHandlerBase {
@@ -201,12 +202,23 @@ public class dbWarehouseHandler extends dbHandlerBase {
Logger . error ( e ) ;
}
// Delete the old records
// Process workOrder records
for ( WorkOrder workOrder : submitList )
DbManager . WarehouseQueries . DELETE_WORKORDER ( workOrder ) ;
for ( WorkOrder workOrder : submitList ) {
// WorkOrder needs a new ID
workOrder . workOrderID = ForgeManager . wordOrderCounter . incrementAndGet ( ) ;
// Reconstruct cooking items
}
// Pass the new workOrders to the ForgeManager
}
}