diff --git a/src/main/java/me/blackvein/quests/listeners/PlayerListener.java b/src/main/java/me/blackvein/quests/listeners/PlayerListener.java index d5ae8b74a..982191cae 100644 --- a/src/main/java/me/blackvein/quests/listeners/PlayerListener.java +++ b/src/main/java/me/blackvein/quests/listeners/PlayerListener.java @@ -748,9 +748,10 @@ public class PlayerListener implements Listener { plugin.getQuestFactory().setSelectingNpcs(temp); } LinkedList temp = plugin.getQuesters(); - for (Quester q : temp) { + for (Iterator iterator = temp.iterator(); iterator.hasNext();) { + Quester q = iterator.next(); if (q.getUUID().equals(quester.getUUID())) { - temp.remove(q); + iterator.remove(); } } plugin.setQuesters(temp);