Browse Source

Minor class cleanup

combat-2
MagicBot 7 months ago
parent
commit
deb5b36309
  1. 3
      src/engine/gameManager/ForgeManager.java

3
src/engine/gameManager/ForgeManager.java

@ -46,6 +46,8 @@ public enum ForgeManager implements Runnable {
// otherwise roll what was asked for // otherwise roll what was asked for
} }
workOrder.total_produced = workOrder.total_produced + 1;
if (workOrder.total_produced >= workOrder.total_to_produce) { if (workOrder.total_produced >= workOrder.total_to_produce) {
Logger.info("Workorder has completed: " + workOrder.workOrderID); Logger.info("Workorder has completed: " + workOrder.workOrderID);
@ -58,7 +60,6 @@ public enum ForgeManager implements Runnable {
// Resubmit workOrder // Resubmit workOrder
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration;
workOrder.total_produced = workOrder.total_produced + 1;
workOrders.add(workOrder); workOrders.add(workOrder);
Logger.info("workOrder cycled:" + workOrder.workOrderID + " (" + workOrder.total_produced + "/" + workOrder.total_to_produce + ")"); Logger.info("workOrder cycled:" + workOrder.workOrderID + " (" + workOrder.total_produced + "/" + workOrder.total_to_produce + ")");

Loading…
Cancel
Save