mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 10:36:09 +01:00
Hopefully fix IndexOutOfBoundsException
This commit is contained in:
parent
32a99bb3f1
commit
a80b1085bd
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user