mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-28 08:54:43 +00:00
Cache gsub
This commit is contained in:
@@ -6,6 +6,7 @@ local M = E:GetModule("Misc");
|
|||||||
local max = math.max
|
local max = math.max
|
||||||
local tinsert = table.insert
|
local tinsert = table.insert
|
||||||
local unpack, pairs = unpack, pairs
|
local unpack, pairs = unpack, pairs
|
||||||
|
local gsub = string.gsub
|
||||||
--WoW API / Variables
|
--WoW API / Variables
|
||||||
local CloseLoot = CloseLoot
|
local CloseLoot = CloseLoot
|
||||||
local CursorOnUpdate = CursorOnUpdate
|
local CursorOnUpdate = CursorOnUpdate
|
||||||
@@ -207,7 +208,7 @@ function M:LOOT_OPENED(_, autoLoot)
|
|||||||
local color = ITEM_QUALITY_COLORS[quality]
|
local color = ITEM_QUALITY_COLORS[quality]
|
||||||
|
|
||||||
if(LootSlotIsCoin(i)) then
|
if(LootSlotIsCoin(i)) then
|
||||||
item = string.gsub(item, "\n", ", ")
|
item = gsub(item, "\n", ", ")
|
||||||
end
|
end
|
||||||
|
|
||||||
if quantity and (quantity > 1) then
|
if quantity and (quantity > 1) then
|
||||||
|
|||||||
Reference in New Issue
Block a user