*Fixed loop bug,

This commit is contained in:
Zino 2013-08-31 17:50:58 +02:00
parent 813462e458
commit 98ef2a6fce
2 changed files with 2 additions and 3 deletions

View File

@ -93,8 +93,6 @@ public class NpcListener implements Listener {
}
if (npcQuests.isEmpty() == false && npcQuests.size() > 1) {
Conversation c = plugin.NPCConversationFactory.buildConversation((Conversable) player);

View File

@ -40,7 +40,8 @@ public class StageTimer implements Runnable{
plugin.trigger.parseQuestTaskTrigger(quester.currentStage.script, player);
if(quester.currentStage.event != null)
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.delayStartTime = 0;
quester.delayTimeLeft = -1;