diff --git a/src/Classes/Item.lua b/src/Classes/Item.lua index 9464d8f627..8291b4980d 100644 --- a/src/Classes/Item.lua +++ b/src/Classes/Item.lua @@ -298,10 +298,6 @@ function ItemClass:ParseRaw(raw, rarity, highQuality) self.rawLines = { } -- Find non-blank lines and trim whitespace for line in raw:gmatch("%s*([^\n]*%S)") do - if line:match("^{ ") then - main:OpenMessagePopup("Error", "\"Advanced Item Description\" (Ctrl+Alt+c) is currently unsupported.\nPlease try again using Ctrl+c only.") - return - end t_insert(self.rawLines, line) end local mode = rarity and "GAME" or "WIKI" diff --git a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua index 8c8643239b..9e35f5dab0 100644 --- a/src/Classes/ItemsTab.lua +++ b/src/Classes/ItemsTab.lua @@ -1170,6 +1170,11 @@ function ItemsTabClass:Draw(viewPort, inputEvents) if event.type == "KeyDown" then if event.key == "v" and IsKeyDown("CTRL") then local newItem = Paste() + if newItem:find("{ ", 0, true) then + main:OpenConfirmPopup("Warning", "\"Advanced Item Descriptions\" (Ctrl+Alt+c) are unsupported.\n\nAbort paste?", "OK", function() + self:SetDisplayItem() + end) + end if newItem then self:CreateDisplayItemFromRaw(newItem, true) end