@ -119,9 +119,9 @@ public enum ForgeManager implements Runnable {
int availableSlots = workOrder.vendor.getRank();
for (WorkOrder npcWorkOrder : workOrder.vendor.workOrders) {
for (WorkOrder npcWorkOrder : workOrder.vendor.workOrders)
availableSlots = availableSlots - npcWorkOrder.slotCount;
}
return availableSlots;
@ -87,6 +87,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
workOrder.suffixToken = msg.sToken;
workOrder.itemName = msg.name;
workOrder.rollingDuration = ForgeManager.calcRollingDuration(workOrder);
workOrder.slotCount = ForgeManager.getAvailableSlots(workOrder);
// Validate vendor can roll this item