mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 18:45:27 +01:00
Avoid error from extensive reach locations, fixes #1688
This commit is contained in:
parent
60d319f818
commit
eff3e14ddb
@ -2610,7 +2610,7 @@ public class Quester implements Comparable<Quester> {
|
||||
finishObjective(quest, new Objective(type, new ItemStack(Material.AIR, 1),
|
||||
new ItemStack(Material.AIR, 1)), null, null, null, location, null, null,
|
||||
null);
|
||||
} else if (getQuestData(quest).hasReached.get(index) == false) {
|
||||
} else if (index >= getQuestData(quest).hasReached.size()) {
|
||||
getQuestData(quest).hasReached.set(index, true);
|
||||
finishObjective(quest, new Objective(type, new ItemStack(Material.AIR, 1),
|
||||
new ItemStack(Material.AIR, 1)), null, null, null, location, null, null,
|
||||
|
Loading…
Reference in New Issue
Block a user