mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-15 15:16:41 +01:00
Merge pull request #658 from BerndiVader/master
fix for https://github.com/FlyingPikachu/Quests/issues/655
This commit is contained in:
commit
8784c8935b
@ -883,7 +883,12 @@ public class QuestFactory implements ConversationAbandonedListener {
|
||||
expRew = (Integer) cc.getSessionData(CK.REW_EXP);
|
||||
}
|
||||
if (cc.getSessionData(CK.REW_COMMAND) != null) {
|
||||
commandRews = (LinkedList<String>) cc.getSessionData(CK.REW_COMMAND);
|
||||
if(cc.getSessionData(CK.REW_COMMAND) instanceof LinkedList<?>) {
|
||||
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) {
|
||||
permRews = (LinkedList<String>) cc.getSessionData(CK.REW_PERMISSION);
|
||||
|
Loading…
Reference in New Issue
Block a user