mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-12 21:53:58 +01:00
Avoid error on player quit, fixes #649
This commit is contained in:
parent
a92ff51231
commit
39294f18f3
@ -748,9 +748,10 @@ public class PlayerListener implements Listener {
|
||||
plugin.getQuestFactory().setSelectingNpcs(temp);
|
||||
}
|
||||
LinkedList<Quester> temp = plugin.getQuesters();
|
||||
for (Quester q : temp) {
|
||||
for (Iterator<Quester> iterator = temp.iterator(); iterator.hasNext();) {
|
||||
Quester q = iterator.next();
|
||||
if (q.getUUID().equals(quester.getUUID())) {
|
||||
temp.remove(q);
|
||||
iterator.remove();
|
||||
}
|
||||
}
|
||||
plugin.setQuesters(temp);
|
||||
|
Loading…
Reference in New Issue
Block a user