From 993abfbf6fba445646585a1c24afa62bb09fce65 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 6 Apr 2024 07:26:17 -0400 Subject: [PATCH] variable renamed --- src/engine/gameManager/ForgeManager.java | 6 +++--- src/engine/loot/WorkOrder.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 6c536134..f973e544 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -18,8 +18,8 @@ public enum ForgeManager implements Runnable { FORGE_MANAGER; - private final BlockingQueue workQueue = new DelayQueue(); - public static final AtomicInteger workOrder = new AtomicInteger(0); + private final BlockingQueue workOrders = new DelayQueue(); + public static final AtomicInteger wordOrderCounter = new AtomicInteger(0); @Override public void run() { @@ -28,7 +28,7 @@ public enum ForgeManager implements Runnable { try { - WorkOrder workOrder = workQueue.take(); + WorkOrder workOrder = workOrders.take(); // Fulfill workOrder diff --git a/src/engine/loot/WorkOrder.java b/src/engine/loot/WorkOrder.java index 0dcebcba..9d71d792 100644 --- a/src/engine/loot/WorkOrder.java +++ b/src/engine/loot/WorkOrder.java @@ -33,7 +33,7 @@ public class WorkOrder implements Delayed { public WorkOrder() { - this.workOrder = ForgeManager.workOrder.incrementAndGet(); + this.workOrder = ForgeManager.wordOrderCounter.incrementAndGet(); this.completionTime = System.currentTimeMillis() + 10000; }