Browse Source

variable renamed

combat-2
MagicBot 7 months ago
parent
commit
993abfbf6f
  1. 6
      src/engine/gameManager/ForgeManager.java
  2. 2
      src/engine/loot/WorkOrder.java

6
src/engine/gameManager/ForgeManager.java

@ -18,8 +18,8 @@ public enum ForgeManager implements Runnable {
FORGE_MANAGER; FORGE_MANAGER;
private final BlockingQueue<WorkOrder> workQueue = new DelayQueue(); private final BlockingQueue<WorkOrder> workOrders = new DelayQueue();
public static final AtomicInteger workOrder = new AtomicInteger(0); public static final AtomicInteger wordOrderCounter = new AtomicInteger(0);
@Override @Override
public void run() { public void run() {
@ -28,7 +28,7 @@ public enum ForgeManager implements Runnable {
try { try {
WorkOrder workOrder = workQueue.take(); WorkOrder workOrder = workOrders.take();
// Fulfill workOrder // Fulfill workOrder

2
src/engine/loot/WorkOrder.java

@ -33,7 +33,7 @@ public class WorkOrder implements Delayed {
public WorkOrder() { public WorkOrder() {
this.workOrder = ForgeManager.workOrder.incrementAndGet(); this.workOrder = ForgeManager.wordOrderCounter.incrementAndGet();
this.completionTime = System.currentTimeMillis() + 10000; this.completionTime = System.currentTimeMillis() + 10000;
} }

Loading…
Cancel
Save