mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-25 18:48:15 +01:00
Catch error for #1214
This commit is contained in:
parent
0f333341da
commit
ffecc74965
@ -3707,25 +3707,30 @@ public class Quester {
|
|||||||
if (quest == null) {
|
if (quest == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (quest.getOptions().getShareProgressLevel() == 1) {
|
try {
|
||||||
List<Quester> mq = getMultiplayerQuesters(quest);
|
if (quest.getOptions().getShareProgressLevel() == 1) {
|
||||||
if (mq == null) {
|
List<Quester> mq = getMultiplayerQuesters(quest);
|
||||||
return;
|
if (mq == null) {
|
||||||
}
|
|
||||||
for (Quester q : mq) {
|
|
||||||
if (q == null) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (q.getCurrentStage(quest) == null) {
|
for (Quester q : mq) {
|
||||||
return;
|
if (q == null) {
|
||||||
}
|
return;
|
||||||
if (q.getCurrentStage(quest).containsObjective(objectiveType)) {
|
}
|
||||||
if (this.getCurrentStage(quest).containsObjective(objectiveType)
|
if (q.getCurrentStage(quest) == null) {
|
||||||
|| !quest.getOptions().getRequireSameQuest()) {
|
return;
|
||||||
fun.apply(q);
|
}
|
||||||
|
if (q.getCurrentStage(quest).containsObjective(objectiveType)) {
|
||||||
|
if (this.getCurrentStage(quest).containsObjective(objectiveType)
|
||||||
|
|| !quest.getOptions().getRequireSameQuest()) {
|
||||||
|
fun.apply(q);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
plugin.getLogger().severe("Error occurred while dispatching " + objectiveType + " for " + quest.getName());
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user