@ -64,11 +64,18 @@ public enum ForgeManager implements Runnable {
@@ -64,11 +64,18 @@ public enum ForgeManager implements Runnable {
// Complete this workOrder.
if ( workOrder . multiple_slot_request = = false ) {
// Single4 item runs are just set to complete
for ( Item workOrderItem : workOrder . cooking ) {
ItemProductionMsg outMsg = new ItemProductionMsg ( workOrder . vendor . building , workOrder . vendor , workOrderItem , mbEnums . ProductionActionType . CONFIRM_PRODUCE , true ) ;
DispatchMessage . dispatchMsgToInterestArea ( workOrder . vendor , outMsg , mbEnums . DispatchChannel . SECONDARY , 700 , false , false ) ;
}
continue ;
}
persistItems ( workOrder ) ;
Logger . info ( "workOrder has completed: " + workOrder . workOrderID ) ;
ForgeManager . vendorWorkOrderLookup . get ( workOrder . vendor ) . remove ( workOrder ) ;
workOrder . runCompleted = true ;
@ -192,7 +199,7 @@ public enum ForgeManager implements Runnable {
@@ -192,7 +199,7 @@ public enum ForgeManager implements Runnable {
// Single item rolls are msg_size of 0;
if ( availableSlots > 0 & & workOrder . multiple_slot_request = = 0 )
if ( availableSlots > 0 & & workOrder . multiple_slot_request = = false )
availableSlots = 1 ;
return availableSlots ;