Skip to content

Commit

Permalink
show as warning, once per session
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightblade committed Sep 21, 2024
1 parent 33da715 commit e420143
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Classes/Item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ 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
if not main.seenAdvIDWarn and line:match("^{ ") then
main:OpenMessagePopup("Warning", "\"Advanced Item Descriptions\" (Ctrl+Alt+c) are currently unsupported.\n\nPlease try again using Ctrl+c only.")
main.seenAdvIDWarn = true
end
t_insert(self.rawLines, line)
end
Expand Down

0 comments on commit e420143

Please sign in to comment.