mirror of
https://github.com/PikaMug/Quests.git
synced 2025-02-05 07:01:51 +01:00
Reset compass to bed location, if set
This commit is contained in:
parent
6bb17a08f4
commit
cff791cfbc
@ -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) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user