BerndiVader 2019-01-27 00:29:17 +01:00
parent 2b3e228418
commit 9992256ce2

View File

@ -883,7 +883,12 @@ public class QuestFactory implements ConversationAbandonedListener {
expRew = (Integer) cc.getSessionData(CK.REW_EXP); expRew = (Integer) cc.getSessionData(CK.REW_EXP);
} }
if (cc.getSessionData(CK.REW_COMMAND) != null) { if (cc.getSessionData(CK.REW_COMMAND) != null) {
if(cc.getSessionData(CK.REW_COMMAND) instanceof LinkedList<?>) {
commandRews = (LinkedList<String>) cc.getSessionData(CK.REW_COMMAND); commandRews = (LinkedList<String>) cc.getSessionData(CK.REW_COMMAND);
} else {
commandRews=new LinkedList<>();
commandRews.addAll((List<String>)cc.getSessionData(CK.REW_COMMAND));
}
} }
if (cc.getSessionData(CK.REW_PERMISSION) != null) { if (cc.getSessionData(CK.REW_PERMISSION) != null) {
permRews = (LinkedList<String>) cc.getSessionData(CK.REW_PERMISSION); permRews = (LinkedList<String>) cc.getSessionData(CK.REW_PERMISSION);