1
0
mirror of https://github.com/PikaMug/Quests.git synced 2025-03-19 10:09:26 +01:00

Get the next stage correctly

This commit is contained in:
Patrick Zhong 2019-07-26 22:51:39 -06:00
parent 6177eab63f
commit d8d68e5f80

View File

@ -231,7 +231,7 @@ public class Quest {
throw new InvalidStageException(this, stage);
}
Stage currentStage = quester.getCurrentStage(this);
Stage nextStage = quester.getCurrentStage(this);
Stage nextStage = getStage(stage);
QuesterPreChangeStageEvent preEvent = new QuesterPreChangeStageEvent(quester, this, currentStage, nextStage);
plugin.getServer().getPluginManager().callEvent(preEvent);
if (preEvent.isCancelled()) {