mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 02:39:05 +00:00
Fix Null Pointer in Quest Location
This commit is contained in:
1 parent
7ac30f4452
commit
7713970f77
1 file changed
+9
-2
@@ -179,8 +179,15 @@ public class QuestLocation extends QuestInterface implements IQuestLocation {
|
||||
|
||||
public boolean isCompleted() {
|
||||
PlayerData data = PlayerDataController.Instance.getPlayerData(player);
|
||||
QuestData questData = (QuestData)data.questData.activeQuests.get(this.parent.questId);
|
||||
return questData.extraData.getBoolean(this.nbtName);
|
||||
PlayerQuestData playerQuestData = data.questData;
|
||||
if(playerQuestData != null){
|
||||
QuestData questData = playerQuestData.activeQuests.get(this.parent.questId);
|
||||
if(questData != null){
|
||||
return questData.extraData.getBoolean(this.nbtName);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public String getText() {
|
||||
|
||||
Reference in new issue
Block a user