Fix saving of new Action booleans, fixes #1962

This commit is contained in:
PikaMug 2022-05-26 19:25:43 -04:00
parent 9dbbce3ea1
commit a7be8e9eb6
1 changed files with 2 additions and 2 deletions

View File

@ -352,13 +352,13 @@ public class BukkitActionFactory implements ActionFactory, ConversationAbandoned
if (context.getSessionData(CK.E_CLEAR_INVENTORY) != null) {
final Boolean b = (Boolean) context.getSessionData(CK.E_CLEAR_INVENTORY);
if (b != null) {
section.set("clear-inventory", true);
section.set("clear-inventory", b);
}
}
if (context.getSessionData(CK.E_FAIL_QUEST) != null) {
final Boolean b = (Boolean) context.getSessionData(CK.E_FAIL_QUEST);
if (b != null) {
section.set("fail-quest", true);
section.set("fail-quest", b);
}
}
if (context.getSessionData(CK.E_ITEMS) != null) {