Added quest objective and turnin data to the quest tracker.

This commit is contained in:
Luis C.M committed 2022-05-29 04:45:38 -05:00
1 parent 0ed5887046
commit e2df33fb5f
5 files changed
+113 -39

No files matched your search

@@ -154,10 +154,7 @@ public class PacketHandlerServer{
for (Quest quest : category.quests.values()) {
if (quest.title.equals(questName)) {
PlayerDataController.instance.getPlayerData(player).questData.trackedQuest = quest;
NBTTagCompound compound = new NBTTagCompound();
compound.setTag("Quest",quest.writeToNBT(new NBTTagCompound()));
compound.setString("CategoryName", quest.getCategory().getName());
Server.sendData(player, EnumPacketClient.OVERLAY_QUEST_TRACKING, compound);
NoppesUtilPlayer.sendTrackedQuestData(player, quest);
return;
}
}