From e03d02b270a619be9fc7ccd9dbfb8e8fcb09469b Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Sat, 5 Nov 2022 22:06:41 +0100 Subject: [PATCH] Fixed error caused by missing Entity data --- eid_api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eid_api.lua b/eid_api.lua index a9e52526..430c7c68 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -661,7 +661,7 @@ function EID:hasDescription(entity) if EID.Config["EnableEntityDescriptions"] and EID:getTableName(entity.Type, entity.Variant, entity.SubType) == "custom" then isAllowed = __eidEntityDescriptions[entityString] ~= nil isAllowed = isAllowed or EID:getDescriptionData(entity.Type, entity.Variant, entity.SubType) ~= nil - isAllowed = isAllowed or type(entity:GetData()["EID_Description"]) ~= type(nil) + isAllowed = isAllowed or entity:GetData() and type(entity:GetData()["EID_Description"]) ~= type(nil) end if entity.Type == EntityType.ENTITY_PICKUP then isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_COLLECTIBLE and EID.Config["DisplayItemInfo"])