Merge pull request #443 from kohashiwakaba/master

Fixed getObjectQuality errors for Flip if the front item is already taken
This commit is contained in:
Buurazu authored and GitHub committed 2022-04-10 22:47:53 -04:00
commit c9cda788c5
1 file changed
+1 -1
+1 -1
View File
@@ -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