Ignore reach-location points in different worlds, fixes #1709

This commit is contained in:
PikaMug 2021-06-05 22:46:28 -04:00
parent 64db53c55d
commit 6a2c5eabe2

View File

@ -2579,6 +2579,10 @@ public class Quester implements Comparable<Quester> {
int index = 0;
try {
for (final Location toReach : getCurrentStage(quest).locationsToReach) {
if (!location.getWorld().getName().equals(toReach.getWorld().getName())) {
index++;
continue;
}
final double radius = getQuestData(quest).radiiToReachWithin.get(index);
if (toReach.distanceSquared(location) <= radius * radius) {
if (!getQuestData(quest).hasReached.get(index)) {