mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-21 00:27:42 +01:00
Get the next stage correctly
This commit is contained in:
parent
6177eab63f
commit
d8d68e5f80
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user