mirror of
https://github.com/PikaMug/Quests.git
synced 2025-02-20 14:31:56 +01:00
Suppress error from null current stage on reload
This commit is contained in:
parent
f63ef8aca7
commit
a9fa6c4946
@ -36,7 +36,9 @@ public class StageTimer implements Runnable {
|
|||||||
if (quester.getQuestData(quest) == null) {
|
if (quester.getQuestData(quest) == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//if (quester.getQuestData(quest).isDelayOver()) {
|
if (quester.getCurrentStage(quest) == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (quester.getCurrentStage(quest).getFinishAction() != null) {
|
if (quester.getCurrentStage(quest).getFinishAction() != null) {
|
||||||
quester.getCurrentStage(quest).getFinishAction().fire(quester, quest);
|
quester.getCurrentStage(quest).getFinishAction().fire(quester, quest);
|
||||||
}
|
}
|
||||||
@ -56,10 +58,6 @@ public class StageTimer implements Runnable {
|
|||||||
+ stageNum + " after delay");
|
+ stageNum + " after delay");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*if (quester.getQuestData(quest) != null) {
|
|
||||||
quester.getQuestData(quest).setDelayOver(true);
|
|
||||||
}*/
|
|
||||||
quester.updateJournal();
|
quester.updateJournal();
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user