From 2246337fc4981face506c0dd4da1a6a532b2f911 Mon Sep 17 00:00:00 2001 From: kohashiwakaba Date: Mon, 11 Apr 2022 11:16:41 +0900 Subject: [PATCH] fix console errors on flipped items if front item is empty --- eid_api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eid_api.lua b/eid_api.lua index 1077b180..cd2f03ac 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -1587,7 +1587,7 @@ end -- Returns the quality of the described entity function EID:getObjectQuality(descObj) - if REPENTANCE and descObj.ObjType == 5 and descObj.ObjVariant == 100 then + if REPENTANCE and descObj.ObjType == 5 and descObj.ObjVariant == 100 and EID.itemConfig:GetCollectible(tonumber(descObj.ObjSubType)) then return tonumber(EID.itemConfig:GetCollectible(tonumber(descObj.ObjSubType)).Quality) end end