Skip to content

Commit

Permalink
Restore saving of Action mob inventory, fixes #1666
Browse files Browse the repository at this point in the history
  • Loading branch information
PikaMug committed May 20, 2021
1 parent eff3e14 commit 370d226
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,13 +532,12 @@ public String getPromptText(final ConversationContext context) {
questMob = new QuestMob();
}
// Check/add newly made item
if (context.getSessionData("newItem") != null) {
if (context.getSessionData("tempStack") != null) {
if (itemIndex >= 0) {
questMob.getInventory()[itemIndex] = ((ItemStack) context.getSessionData("tempStack"));
itemIndex = -1;
}
context.setSessionData("newItem", null);
context.setSessionData("tempStack", null);
ItemStackPrompt.clearSessionData(context);
}

final ActionsEditorPostOpenNumericPromptEvent event
Expand Down

0 comments on commit 370d226

Please sign in to comment.