diff --git a/eid_api.lua b/eid_api.lua index bb9f7370..6bc344df 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -1572,7 +1572,7 @@ end -- Returns the quality of the described entity function EID:getObjectQuality(descObj) - if descObj.ObjType == 5 and descObj.ObjVariant == 100 then + if REPENTANCE and descObj.ObjType == 5 and descObj.ObjVariant == 100 then return tonumber(EID.itemConfig:GetCollectible(tonumber(descObj.ObjSubType)).Quality) end end diff --git a/main.lua b/main.lua index 222e7b82..c9e8f6ab 100644 --- a/main.lua +++ b/main.lua @@ -523,7 +523,6 @@ function EID:printDescription(desc, cachedID) end local renderPos = EID:getTextPosition() - --print(cachedID) if cachedID then local localModeDiff = renderPos - EID.CachedRenderPoses[cachedID] -- Drawing our currently saved description @@ -561,6 +560,7 @@ function EID:printDescription(desc, cachedID) offsetX = offsetX + 14 EID:renderInlineIcons({{desc.Icon,0}}, renderPos.X - 3 * EID.Scale, renderPos.Y - 4 * EID.Scale) end + --Display ItemType / Charge local itemType = -1 if desc.ObjSubType ~= nil and desc.ObjType == 5 and desc.ObjVariant == 100 then