mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-18 07:07:40 +01:00
Ensure stage is not null when checking objective, fixes #1064
This commit is contained in:
parent
3bf0c58671
commit
225899a8d7
@ -1186,7 +1186,7 @@ public class Quester {
|
||||
* @return true if quest contains specified objective
|
||||
*/
|
||||
public boolean containsObjective(Quest quest, String s) {
|
||||
if (quest == null) {
|
||||
if (quest == null || getCurrentStage(quest) == null) {
|
||||
return false;
|
||||
}
|
||||
return getCurrentStage(quest).containsObjective(s);
|
||||
|
Loading…
Reference in New Issue
Block a user