mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
update
This commit is contained in:
@@ -4,7 +4,7 @@ local DT = E:GetModule("DataTexts");
|
|||||||
--Cache global variables
|
--Cache global variables
|
||||||
--Lua functions
|
--Lua functions
|
||||||
local _G = _G
|
local _G = _G
|
||||||
local pairs = pairs
|
local pairs, ipairs = pairs, ipairs
|
||||||
local format, join, upper = string.format, string.join, string.upper
|
local format, join, upper = string.format, string.join, string.upper
|
||||||
--WoW API / Variables
|
--WoW API / Variables
|
||||||
local GetInventoryItemDurability = GetInventoryItemDurability
|
local GetInventoryItemDurability = GetInventoryItemDurability
|
||||||
@@ -36,7 +36,7 @@ local function OnEvent(self)
|
|||||||
lastPanel = self
|
lastPanel = self
|
||||||
totalDurability = 100
|
totalDurability = 100
|
||||||
|
|
||||||
for _, value in pairs(slots) do
|
for _, value in ipairs(slots) do
|
||||||
local slot = GetInventorySlotInfo(value)
|
local slot = GetInventorySlotInfo(value)
|
||||||
current, max = GetInventoryItemDurability(slot)
|
current, max = GetInventoryItemDurability(slot)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user