Skip to content

Commit

Permalink
Add Ctrl+Alt+c error popup (#8287)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightblade authored Sep 20, 2024
1 parent d34137a commit f4df5de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Classes/Item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,11 @@ function ItemClass:ParseRaw(raw, rarity, highQuality)
self.rawLines = { }
-- Find non-blank lines and trim whitespace
for line in raw:gmatch("%s*([^\n]*%S)") do
t_insert(self.rawLines, line)
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"
local l = 1
Expand Down

0 comments on commit f4df5de

Please sign in to comment.