Merge pull request #872 from 18PatZ/master

Patch quests start event bug (#838)
This commit is contained in:
PikaMug 2019-07-28 11:44:39 -04:00 committed by GitHub
commit 1b6acef6c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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