Added feature to add descriptions using "GetData()"
This commit is contained in:
1 parent
6082f1e818
commit
eb3b4182a2
3 files changed
+31
-6
No files matched your search
+1
-1
@@ -352,7 +352,7 @@ function EID:hasDescription(entity)
|
||||
local isAllowed = false
|
||||
if EID.Config["EnableEntityDescriptions"] then
|
||||
isAllowed = __eidEntityDescriptions[entity.Type .. "." .. entity.Variant .. "." .. entity.SubType] ~= nil
|
||||
--isAllowed = isAllowed or type(entity:GetData()["EID_Description"]) ~= type(nil)
|
||||
isAllowed = isAllowed or type(entity:GetData()["EID_Description"]) ~= type(nil)
|
||||
end
|
||||
isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_COLLECTIBLE and EID.Config["DisplayItemInfo"])
|
||||
isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_TRINKET and EID.Config["DisplayTrinketInfo"])
|
||||
|
||||
Reference in new issue
Block a user