Work-around another compass issue, seems like a strange one though.

This commit is contained in:
Nathan Wolf 2016-03-07 11:03:04 -08:00
parent 682da2f55e
commit 391daf18e6
2 changed files with 3 additions and 0 deletions

View File

@ -195,6 +195,7 @@ public class Quest {
targetLocation = nextStage.locationsToReach.getFirst(); targetLocation = nextStage.locationsToReach.getFirst();
} }
if (targetLocation != null) { if (targetLocation != null) {
// org.bukkit.Bukkit.getLogger().info(" setting compass target for " + quester.getPlayer().getName() + " to " + targetLocation);
quester.getPlayer().setCompassTarget(targetLocation); quester.getPlayer().setCompassTarget(targetLocation);
} }

View File

@ -2747,6 +2747,8 @@ try{
quester.saveData(); quester.saveData();
} }
qs.put(p.getUniqueId(), quester); qs.put(p.getUniqueId(), quester);
// Kind of hacky to put this here, works around issues with the compass on fast join
quester.findCompassTarget();
} }