mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-22 09:08:05 +01:00
*Fix for player-data when stage=null
This commit is contained in:
parent
31df651edc
commit
cfb567f59c
@ -3,6 +3,8 @@ package me.blackvein.quests;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import me.ThaH3lper.com.LoadBosses.LoadBoss;
|
import me.ThaH3lper.com.LoadBosses.LoadBoss;
|
||||||
import me.blackvein.quests.util.ItemUtil;
|
import me.blackvein.quests.util.ItemUtil;
|
||||||
import net.citizensnpcs.api.CitizensAPI;
|
import net.citizensnpcs.api.CitizensAPI;
|
||||||
@ -2071,7 +2073,14 @@ public class Quester {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (stage == null) {
|
||||||
|
currentQuest = quest;
|
||||||
|
currentQuest.completeQuest(this);
|
||||||
|
Quests.log.log(Level.SEVERE, "[Quests] Invalid stage for player: \"" + name + "\". Quest ended.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
currentQuest = quest;
|
currentQuest = quest;
|
||||||
currentStage = stage;
|
currentStage = stage;
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user