mirror of
https://github.com/PikaMug/Quests.git
synced 2025-03-12 06:40:32 +01:00
Restore saving of Action mob inventory, fixes #1666
This commit is contained in:
parent
eff3e14ddb
commit
370d226d52
@ -532,13 +532,12 @@ public class ActionMainPrompt extends ActionsEditorNumericPrompt {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user