mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-25 12:15:59 +01:00
Correct loading of exp requirement, fixes #1961
This commit is contained in:
parent
69f6d0acc4
commit
ae70523ac6
@ -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
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user