mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
loot: only use existing functions
This commit is contained in:
+5
-2
@@ -470,8 +470,11 @@ pfUI:RegisterModule("loot", function ()
|
|||||||
maxrarity = math.max(maxrarity, quality)
|
maxrarity = math.max(maxrarity, quality)
|
||||||
maxwidth = math.max(maxwidth, slot.name:GetStringWidth())
|
maxwidth = math.max(maxwidth, slot.name:GetStringWidth())
|
||||||
|
|
||||||
slot:SetID(id)
|
if slot.SetSlot then
|
||||||
slot:SetSlot(id)
|
slot:SetSlot(id)
|
||||||
|
else
|
||||||
|
slot:SetID(id)
|
||||||
|
end
|
||||||
|
|
||||||
slot:Enable()
|
slot:Enable()
|
||||||
slot:Show()
|
slot:Show()
|
||||||
|
|||||||
Reference in New Issue
Block a user