Correct loading of exp requirement, fixes #1961

This commit is contained in:
PikaMug 2022-05-14 17:00:45 -04:00
parent 69f6d0acc4
commit ae70523ac6
2 changed files with 3 additions and 3 deletions

View File

@ -491,10 +491,10 @@ public class RewardsPrompt extends QuestsEditorNumericPrompt {
}
public boolean checkReward(final ConversationContext context) {
if (context.getSessionData(CK.REW_MONEY) != null
|| context.getSessionData(CK.REW_EXP) != null
if (context.getSessionData(CK.REW_MONEY) != null
|| context.getSessionData(CK.REW_QUEST_POINTS) != null
|| context.getSessionData(CK.REW_ITEMS) != null
|| context.getSessionData(CK.REW_EXP) != null
|| context.getSessionData(CK.REW_COMMAND) != null
|| context.getSessionData(CK.REW_PERMISSION) != null
|| context.getSessionData(CK.REW_MCMMO_SKILLS) != null

View File

@ -173,7 +173,7 @@ public class BukkitQuestFactory implements QuestFactory, ConversationAbandonedLi
context.setSessionData(CK.REQ_QUEST_POINTS, requirements.getQuestPoints());
}
if (requirements.getExp() != 0) {
context.setSessionData(CK.REW_EXP, requirements.getExp());
context.setSessionData(CK.REQ_EXP, requirements.getExp());
}
if (!requirements.getItems().isEmpty()) {
context.setSessionData(CK.REQ_ITEMS, requirements.getItems());