mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 00:47:50 +00:00
PlayerQuestData:
-Fixed concurrent modification error
This commit is contained in:
1 parent
088ffe23a5
commit
41a6803e2e
1 file changed
+4
-1
@@ -1,6 +1,7 @@
|
||||
package noppes.npcs.controllers.data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
@@ -114,7 +115,9 @@ public class PlayerQuestData implements IPlayerQuestData {
|
||||
public boolean checkQuestCompletion(PlayerData playerData,EnumQuestType type) {
|
||||
boolean bo = false;
|
||||
EntityPlayer player = playerData.player;
|
||||
for(QuestData data : this.activeQuests.values()){
|
||||
|
||||
ArrayList<QuestData> activeQuestValues = new ArrayList<>(this.activeQuests.values());
|
||||
for(QuestData data : activeQuestValues){
|
||||
if(data.quest.type != type && type != null)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in new issue
Block a user