mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 06:09:05 +00:00
reorder checks
This commit is contained in:
1 parent
3be5e2ebb5
commit
d20c701635
1 file changed
+3
-4
@@ -550,14 +550,13 @@ public class NoppesUtilPlayer {
|
||||
if (data == null)
|
||||
return false;
|
||||
|
||||
if (!data.quest.questInterface.isPartyCompleted(party))
|
||||
return false;
|
||||
|
||||
|
||||
Quest quest = data.quest;
|
||||
if (quest == null)
|
||||
return false;
|
||||
|
||||
if (!data.quest.questInterface.isPartyCompleted(party))
|
||||
return false;
|
||||
|
||||
if (data.quest.completion == EnumQuestCompletion.Instant)
|
||||
EventHooks.onPartyFinished(party, data.quest);
|
||||
|
||||
|
||||
Reference in new issue
Block a user