Hopefully fix IndexOutOfBoundsException

This commit is contained in:
HappyPikachu 2014-11-05 21:36:19 -05:00
parent 32a99bb3f1
commit a80b1085bd
1 changed files with 1 additions and 1 deletions

View File

@ -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("<location>", getCurrentStage(quest).locationNames.get(getCurrentStage(quest).locationsToReach.indexOf(l)));