@ -336,6 +336,7 @@ public enum BuildingManager {
if (ForgeManager.vendorWorkOrderLookup.get(hirelingNPC) != null)
for (WorkOrder workOrder : ForgeManager.vendorWorkOrderLookup.get(hirelingNPC)) {
workOrder.runCompleted = true;
workOrder.vendor = null;
DbManager.WarehouseQueries.DELETE_WORKORDER(workOrder);
}
@ -63,8 +63,9 @@ public enum ForgeManager implements Runnable {
workOrder = forge.take();
// For workOrders loaded from disk
// or vendors who were re-deeded
if (workOrder.runCompleted)
if (workOrder.vendor == null && workOrder.runCompleted)
continue;
// This workOrder has completed production.