Browse Source

Thread consistency for these

combat-2
MagicBot 8 months ago
parent
commit
7993fb22d2
  1. 4
      src/engine/loot/WorkOrder.java

4
src/engine/loot/WorkOrder.java

@ -40,7 +40,7 @@ public class WorkOrder implements Delayed { @@ -40,7 +40,7 @@ public class WorkOrder implements Delayed {
public int workOrderID;
public NPC vendor;
public int slots_used;
public volatile int slots_used;
public int total_to_produce;
public int total_produced;
public boolean multiple_slot_request;
@ -52,7 +52,7 @@ public class WorkOrder implements Delayed { @@ -52,7 +52,7 @@ public class WorkOrder implements Delayed {
public int suffixToken;
public long rollingDuration;
public long completionTime;
public boolean runCompleted = false;
public volatile boolean runCompleted = false;
// This collection is serialized to the vendor rolling window in ManageNPCMsg.

Loading…
Cancel
Save