From 5152f26bcfb3a066f0e851ebcd08c6ba073fa148 Mon Sep 17 00:00:00 2001 From: HappyPikachu Date: Wed, 23 Aug 2017 16:20:16 -0400 Subject: [PATCH] Avoid exception on Quests reload, fixes #104. Bump version number --- pom.xml | 2 +- src/main/java/me/blackvein/quests/Quest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 0f7660449..7f78a10c6 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ me.blackvein.quests quests - 3.0.1 + 3.0.2 quests https://github.com/FlyingPikachu/Quests/ jar diff --git a/src/main/java/me/blackvein/quests/Quest.java b/src/main/java/me/blackvein/quests/Quest.java index f4cca3214..b8ea0786c 100644 --- a/src/main/java/me/blackvein/quests/Quest.java +++ b/src/main/java/me/blackvein/quests/Quest.java @@ -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); } }