Finalize matching item display workaround

This commit is contained in:
PikaMug 2022-12-25 15:47:38 -05:00
parent d9292e0222
commit f14040c7fe
2 changed files with 0 additions and 17 deletions

View File

@ -735,22 +735,6 @@ public class QuestMainPrompt extends QuestsEditorNumericPrompt {
// Check/add newly made item
if (context.getSessionData("tempStack") != null) {
final ItemStack stack = (ItemStack) context.getSessionData("tempStack");
// TODO - Delete this and questGUIError string
/*boolean failed = false;
for (final IQuest quest : plugin.getLoadedQuests()) {
if (quest.getGUIDisplay() != null) {
if (ItemUtil.compareItems(stack, quest.getGUIDisplay(), false) == 0) {
String error = Lang.get("questGUIError");
error = error.replace("<quest>", ChatColor.DARK_PURPLE + quest.getName() + ChatColor.RED);
context.getForWhom().sendRawMessage(ChatColor.RED + error);
failed = true;
break;
}
}
}
if (!failed) {
context.setSessionData(CK.Q_GUIDISPLAY, context.getSessionData("tempStack"));
}*/
if (stack != null) {
context.setSessionData(CK.Q_GUIDISPLAY, stack.clone());
}

View File

@ -87,7 +87,6 @@ questWGSetRegion: "Set region start"
questWGPrompt: "Enter WorldGuard region, <clear>, <cancel>"
questWGInvalidRegion: "<region> is not a valid WorldGuard region!"
questWGRegionCleared: "Quest region cleared."
questGUIError: "Error: That item is already being used as the GUI display for the quest <quest>."
questCurrentItem: "Current item:"
questGUICleared: "Quest GUI item display cleared."
questDeleted: "Quest deleted! Quest and action data has been reloaded."