mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-13 22:25:50 +01:00
Ignore reach-location points in different worlds, fixes #1709
This commit is contained in:
parent
64db53c55d
commit
6a2c5eabe2
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user