@ -57,6 +57,10 @@ public enum ForgeManager implements Runnable {
@@ -57,6 +57,10 @@ public enum ForgeManager implements Runnable {
}
workOrder . runCompleted = true ;
// Update workorder to disk
DbManager . WarehouseQueries . UPDATE_WORKORDER ( workOrder ) ;
}
if ( workOrder . runCompleted )
@ -328,6 +332,11 @@ public enum ForgeManager implements Runnable {
@@ -328,6 +332,11 @@ public enum ForgeManager implements Runnable {
DispatchMessage . dispatchMsgToInterestArea ( workOrder . vendor , outMsg , mbEnums . DispatchChannel . SECONDARY , 700 , false , false ) ;
workOrder . total_produced = workOrder . total_produced + 1 ;
}
// Save updated status to disk
DbManager . WarehouseQueries . UPDATE_WORKORDER ( workOrder ) ;
}
public static int calcRandomMod ( NPC vendor , mbEnums . ItemModType itemModType , int modTable ) {