diff --git a/main/src/main/java/me/blackvein/quests/convo/actions/main/ActionMainPrompt.java b/main/src/main/java/me/blackvein/quests/convo/actions/main/ActionMainPrompt.java index 622346452..17cfcd1ef 100644 --- a/main/src/main/java/me/blackvein/quests/convo/actions/main/ActionMainPrompt.java +++ b/main/src/main/java/me/blackvein/quests/convo/actions/main/ActionMainPrompt.java @@ -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