From a80b1085bd35a530f8b098979562d4b80cc2e770 Mon Sep 17 00:00:00 2001 From: HappyPikachu Date: Wed, 5 Nov 2014 21:36:19 -0500 Subject: [PATCH] Hopefully fix IndexOutOfBoundsException --- src/main/java/me/blackvein/quests/Quester.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/blackvein/quests/Quester.java b/src/main/java/me/blackvein/quests/Quester.java index dda7ca906..f4aa425c1 100644 --- a/src/main/java/me/blackvein/quests/Quester.java +++ b/src/main/java/me/blackvein/quests/Quester.java @@ -794,7 +794,7 @@ public class Quester { if (l.equals(l2)) { - if (getQuestData(quest).hasReached.get(getQuestData(quest).locationsReached.indexOf(l2)) == false) { + if (getQuestData(quest).hasReached.contains(getQuestData(quest).locationsReached.indexOf(l2)) == false) { String obj = Lang.get("goTo"); obj = obj.replaceAll("", getCurrentStage(quest).locationNames.get(getCurrentStage(quest).locationsToReach.indexOf(l)));