mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-23 12:30:50 +00:00
actionbar: remove item count from reagent strings
This commit is contained in:
@@ -1611,6 +1611,9 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
|
|||||||
scanner:SetAction(slot)
|
scanner:SetAction(slot)
|
||||||
local _, reagents = scanner:Find(reagent_capture)
|
local _, reagents = scanner:Find(reagent_capture)
|
||||||
|
|
||||||
|
-- remove reagent counts if existing
|
||||||
|
reagents = reagents and string.gsub(reagents, " %((.+)%)", "")
|
||||||
|
|
||||||
-- update on reagent requirement changes
|
-- update on reagent requirement changes
|
||||||
if reagents and reagent_slots[slot] ~= reagents then
|
if reagents and reagent_slots[slot] ~= reagents then
|
||||||
reagent_counts[reagents] = reagent_counts[reagents] or 0
|
reagent_counts[reagents] = reagent_counts[reagents] or 0
|
||||||
|
|||||||
Reference in New Issue
Block a user