Avoid exception on Quests reload, fixes #104. Bump version number

This commit is contained in:
HappyPikachu 2017-08-23 16:20:16 -04:00
parent f3792b480c
commit 5152f26bcf
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<groupId>me.blackvein.quests</groupId>
<artifactId>quests</artifactId>
<version>3.0.1</version>
<version>3.0.2</version>
<name>quests</name>
<url>https://github.com/FlyingPikachu/Quests/</url>
<packaging>jar</packaging>

View File

@ -165,7 +165,7 @@ public class Quest {
targetLocation = nextStage.locationsToReach.getFirst();
}
if (targetLocation != null) {
if (targetLocation.getWorld().equals(quester.getPlayer().getWorld())) {
if (targetLocation.getWorld().getName().equals(quester.getPlayer().getWorld().getName())) {
quester.getPlayer().setCompassTarget(targetLocation);
}
}