mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-11 21:57:40 +00:00
Fix TileWaypoint | ServerEventsHandler -> ConcurrentModificationException
> ConcurrentModificationException
-- For #63
SHA 41a6803e2e
@c0508383
This commit is contained in:
1 parent
571a1e796d
commit
9bdbdec079
2 files changed
+6
-2
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package noppes.npcs;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
@@ -297,7 +298,8 @@ public class ServerEventsHandler {
|
||||
boolean change = false;
|
||||
String entityName = EntityList.getEntityString(entity);
|
||||
|
||||
for(QuestData data : questData.activeQuests.values()){
|
||||
ArrayList<QuestData> activeQuestValues = new ArrayList<>(questData.activeQuests.values());
|
||||
for(QuestData data : activeQuestValues){
|
||||
if(data.quest.type != EnumQuestType.Kill && data.quest.type != EnumQuestType.AreaKill)
|
||||
continue;
|
||||
if(data.quest.type == EnumQuestType.AreaKill && all){
|
||||
|
||||
Reference in new issue
Block a user