Fix QuestPing and Automatic Quest Checker

This commit is contained in:
Kam committed 2024-03-07 04:50:10 -05:00
1 parent 1c77828f28
commit 47dcc62d4f
2 files changed
+17 -14

No files matched your search

@@ -145,6 +145,7 @@ public class PartyController {
return;
NBTTagCompound compound = new NBTTagCompound();
compound.setInteger("QuestPing", 0);
if (party.getQuest() != null) {
Quest quest = (Quest) party.getQuest();
Vector<String> vector = quest.questInterface.getPartyQuestLogStatus(party);
@@ -191,7 +192,7 @@ public class PartyController {
public boolean checkQuestCompletion(Party party, EnumQuestType type) {
QuestData questData = party.getQuestData();
if(questData != null){
if(questData.quest.type != type && type != null){
if(questData.quest.type == type || type == null){
QuestInterface inter = questData.quest.questInterface;
if(inter.isPartyCompleted(party)){
if((!questData.isCompleted && questData.quest.completion == EnumQuestCompletion.Npc) || questData.quest.instantPartyComplete(party)){