Reset compass to bed location, if set

This commit is contained in:
Nathan Wolf 2015-12-02 11:38:07 -08:00
parent 6bb17a08f4
commit cff791cfbc

View File

@ -90,7 +90,11 @@ public class Quest {
q.getPlayer().sendMessage(Quests.parseString(stageCompleteMessage, this));
}
q.getPlayer().setCompassTarget(q.getPlayer().getWorld().getSpawnLocation());
Location defaultLocation = q.getPlayer().getBedSpawnLocation();
if (defaultLocation == null) {
defaultLocation = q.getPlayer().getWorld().getSpawnLocation();
}
q.getPlayer().setCompassTarget(defaultLocation);
if (q.getCurrentStage(this).delay < 0) {