mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-29 06:06:05 +01:00
Untested workaround for #2048
This commit is contained in:
parent
354c72ba4a
commit
11a251bbf4
@ -735,7 +735,8 @@ public class QuestMainPrompt extends QuestsEditorNumericPrompt {
|
|||||||
// Check/add newly made item
|
// Check/add newly made item
|
||||||
if (context.getSessionData("tempStack") != null) {
|
if (context.getSessionData("tempStack") != null) {
|
||||||
final ItemStack stack = (ItemStack) context.getSessionData("tempStack");
|
final ItemStack stack = (ItemStack) context.getSessionData("tempStack");
|
||||||
boolean failed = false;
|
// TODO - Delete this and questGUIError string
|
||||||
|
/*boolean failed = false;
|
||||||
for (final IQuest quest : plugin.getLoadedQuests()) {
|
for (final IQuest quest : plugin.getLoadedQuests()) {
|
||||||
if (quest.getGUIDisplay() != null) {
|
if (quest.getGUIDisplay() != null) {
|
||||||
if (ItemUtil.compareItems(stack, quest.getGUIDisplay(), false) == 0) {
|
if (ItemUtil.compareItems(stack, quest.getGUIDisplay(), false) == 0) {
|
||||||
@ -749,6 +750,9 @@ public class QuestMainPrompt extends QuestsEditorNumericPrompt {
|
|||||||
}
|
}
|
||||||
if (!failed) {
|
if (!failed) {
|
||||||
context.setSessionData(CK.Q_GUIDISPLAY, context.getSessionData("tempStack"));
|
context.setSessionData(CK.Q_GUIDISPLAY, context.getSessionData("tempStack"));
|
||||||
|
}*/
|
||||||
|
if (stack != null) {
|
||||||
|
context.setSessionData(CK.Q_GUIDISPLAY, stack.clone());
|
||||||
}
|
}
|
||||||
ItemStackPrompt.clearSessionData(context);
|
ItemStackPrompt.clearSessionData(context);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user