mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-02 22:48:05 +01:00
*Fixed loop bug,
This commit is contained in:
parent
813462e458
commit
98ef2a6fce
@ -93,8 +93,6 @@ public class NpcListener implements Listener {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (npcQuests.isEmpty() == false && npcQuests.size() > 1) {
|
if (npcQuests.isEmpty() == false && npcQuests.size() > 1) {
|
||||||
|
|
||||||
Conversation c = plugin.NPCConversationFactory.buildConversation((Conversable) player);
|
Conversation c = plugin.NPCConversationFactory.buildConversation((Conversable) player);
|
||||||
|
@ -40,7 +40,8 @@ public class StageTimer implements Runnable{
|
|||||||
plugin.trigger.parseQuestTaskTrigger(quester.currentStage.script, player);
|
plugin.trigger.parseQuestTaskTrigger(quester.currentStage.script, player);
|
||||||
if(quester.currentStage.event != null)
|
if(quester.currentStage.event != null)
|
||||||
quester.currentStage.event.happen(quester);
|
quester.currentStage.event.happen(quester);
|
||||||
quester.currentStage = quester.currentQuest.stages.get(quester.currentQuest.stages.indexOf(quester.currentStage) + 1);
|
quester.currentStage = quester.currentQuest.stages.get(quester.currentStageIndex + 1);
|
||||||
|
quester.currentStageIndex++;
|
||||||
quester.addEmpties();
|
quester.addEmpties();
|
||||||
quester.delayStartTime = 0;
|
quester.delayStartTime = 0;
|
||||||
quester.delayTimeLeft = -1;
|
quester.delayTimeLeft = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user