Concurrency update

This commit is contained in:
2024-04-22 00:37:49 -04:00
parent 2de1f78f22
commit 6f39767fb4
4 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -35,6 +35,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;
@@ -872,7 +873,7 @@ public class NPC extends AbstractCharacter {
// If NPC is a vendor then configure ForgeManager support
if (this.contract.isTrainer() == false)
ForgeManager.vendorWorkOrderLookup.computeIfAbsent(this, k -> new ArrayList<>());
ForgeManager.vendorWorkOrderLookup.computeIfAbsent(this, k -> new CopyOnWriteArrayList<>());
this.symbol = this.contract.getIconID();
this.modTypeTable = this.contract.getNPCModTypeTable();