diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index bfb64654..db6d9f51 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -17,6 +17,7 @@ import engine.gameManager.*; import engine.job.JobContainer; import engine.job.JobScheduler; import engine.jobs.UpgradeNPCJob; +import engine.loot.WorkOrder; import engine.math.Bounds; import engine.math.Vector3f; import engine.math.Vector3fImmutable; @@ -37,6 +38,7 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.locks.ReentrantReadWriteLock; import static engine.net.client.msg.ErrorPopupMsg.sendErrorPopup; @@ -52,6 +54,8 @@ public class NPC extends AbstractCharacter { private final ArrayList rolling = new ArrayList<>(); public ReentrantReadWriteLock minionLock = new ReentrantReadWriteLock(); public ArrayList forgedItems = new ArrayList<>(); + + public CopyOnWriteArrayList workOrders = new CopyOnWriteArrayList(); public HashMap equip = null; public int runeSetID = 0; public int extraRune2 = 0;