mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 17:47:32 +00:00
Fix QuestPing and Automatic Quest Checker
This commit is contained in:
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)){
|
||||
|
||||
Reference in new issue
Block a user